15 lines
520 B
JavaScript
Executable File
15 lines
520 B
JavaScript
Executable File
// Audio functions (eg "pick a random sound from a list", "build a playlist") will go here.
|
|
// In the meantime, a quick run-down of the basic commands:
|
|
|
|
// Save the specified audio file to handle "s".
|
|
// s = new Sound( "audio/music/menu_track.ogg" );
|
|
|
|
// Play the sound stored at handle "s" one time (it'll be automatically freed when the playback ends):
|
|
// s.play();
|
|
|
|
// Play the sound stored at handle "s" continuously:
|
|
// s.loop();
|
|
|
|
// Close "s" and free it from memory (use in conjunction with loop()):
|
|
// s.free();
|