Skip to content

Instantly share code, notes, and snippets.

@edwerner
Created March 11, 2013 20:49
Show Gist options
  • Save edwerner/5137629 to your computer and use it in GitHub Desktop.
Save edwerner/5137629 to your computer and use it in GitHub Desktop.
// create new wolves soundmanager instance
var soundManager = new WolvesSoundManager();
// add new sound passing params object
soundManager.addSound({
'id': 'audio_01',
'class': 'demo-audio',
'alias': 'WOLVES_DEMO_AUDIO'
});
// control sound instance using 'alias' parameter
soundManager.play('WOLVES_DEMO_AUDIO');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment