Skip to content

Instantly share code, notes, and snippets.

@richorama
Created June 30, 2014 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richorama/adc8b3103ec6fbe9f103 to your computer and use it in GitHub Desktop.
Save richorama/adc8b3103ec6fbe9f103 to your computer and use it in GitHub Desktop.
Playing wav files in Node.js using Edge.js
var edge = require('edge');
var play = edge.func(function () {/*
async (input) => {
(new System.Media.SoundPlayer(input as string)).Play();
return input;
}
*/});
play("pacman_beginning.wav", function (error, result) {
if (error) throw error;
setTimeout(console.log, 10 * 1000)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment