Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 543 Bytes
(slightly random order)
*) api based on https://github.com/Marak/play.js:
var play = require("<addon>");
play.sound(<filepath>");
play.sound(<filepath>", onCompletionCallback);
*) Use Mix_ChannelFinished to handle play sound done
http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html#SEC37
*) track multiple channels playing and their callbacks
*) check proper way to initialise SDL api (once?) during import?
*) how to cleanup addon?
*) how to deal with async loading of the audio data within this addon through SDL?
Something went wrong with that request. Please try again.