mirror of
https://github.com/sbrl/soundbox.git
synced 2018-01-10 21:33:43 +00:00
23 lines
499 B
Markdown
23 lines
499 B
Markdown
# soundbox
|
|
A super simple JS library for playing sound effects
|
|
|
|
* Current size: `1.04kb`
|
|
* Current minified size: `0.64kb`
|
|
|
|
## To use:
|
|
|
|
```javascript
|
|
var soundbox = new SoundBox();
|
|
soundbox.load("beep", "beep.wav");
|
|
|
|
// later....
|
|
soundbox.play("beep", function() {
|
|
// do stuff
|
|
}); // the callback is optional
|
|
```
|
|
|
|
## Download
|
|
|
|
* [soundbox.js](https://raw.githubusercontent.com/sbrl/soundbox/master/soundbox.js)
|
|
* [soundbox.min.js](https://github.com/sbrl/soundbox/blob/master/soundbox.min.js)
|
|
|