Created
June 30, 2014 21:25
-
-
Save richorama/adc8b3103ec6fbe9f103 to your computer and use it in GitHub Desktop.
Playing wav files in Node.js using Edge.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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