Neurophysiologically Pseudoscientific Manatee
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

sounds

1.0.2 • Public • Published

Sounds

Sounds is a simple JavaScript library playing sounds. Modern browsers only, experimental.

var soundManager=new Sounds('media/sounds',function() {
    console.log('All sounds loaded !');
    // play tadaa 3 times
    soundManager.play('tadaaa',3);
    // let's play good background sound
    soundManager.play('highwaytohell',Infinity);
    });
soundManager.register('highwaytohell');
soundManager.register('supersound1');
soundManager.register('supersound2');
soundManager.register('tadaaa');

Licence

GNU/GPL

Keywords

install

npm i sounds

Downloadsweekly downloads

1

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar