SoundJS
SoundJS is a library to make working with audio on the web easier. It provides a consistent API for playing audio in
different browsers, including using a target plugin model to provide an easy way to provide additional audio plugins
like a Flash fallback (included, but must be used separately from the combined/minified version).
A mechanism has been provided for easily tying in audio preloading to PreloadJS.
Example
```javascript createjs.Sound.on("fileload", handleLoadComplete); createjs.Sound.alternateExtensions = "mp3"; createjs.Sound.registerSound({src:"path/to/sound.ogg", id:"sound"}); function handleLoadComplete(event) {createjs.Sound.play("sound");
}
```
License
Built by gskinner.com, and released for free under the MIT license, which means you can use it for almost any purpose (including commercial projects). We appreciate credit where possible, but it is not a requirement.Support and Resources
- Find examples and more information at the SoundJS web site
- Read the documentation
- Discuss, share projects, and interact with other users on reddit.
- Ask technical questions on Stack Overflow.
- File verified bugs or formal feature requests using Issues on GitHub.
- Have a look at the included examples and