2015-02-17 10:03:09 +00:00
|
|
|
# soundbox
|
|
|
|
A super simple JS library for playing sound effects
|
2015-02-17 10:13:49 +00:00
|
|
|
|
2015-02-19 20:25:39 +00:00
|
|
|
* Current size: `1.04kb`
|
|
|
|
* Current minified size: `0.64kb`
|
|
|
|
|
|
|
|
## To use:
|
2015-02-17 10:13:49 +00:00
|
|
|
|
|
|
|
```javascript
|
|
|
|
var soundbox = new SoundBox();
|
2015-02-19 20:25:39 +00:00
|
|
|
soundbox.load("beep", "beep.wav");
|
2015-02-17 10:13:49 +00:00
|
|
|
|
|
|
|
// later....
|
2015-02-19 20:25:39 +00:00
|
|
|
soundbox.play("beep", function() {
|
|
|
|
// do stuff
|
|
|
|
}); // the callback is optional
|
2015-02-17 10:13:49 +00:00
|
|
|
```
|
2015-02-19 20:25:39 +00:00
|
|
|
|
|
|
|
## Download
|
|
|
|
|
|
|
|
* [soundbox.js](https://raw.githubusercontent.com/sbrl/soundbox/master/soundbox.js)
|
2015-02-19 20:27:21 +00:00
|
|
|
* [soundbox.min.js](https://raw.githubusercontent.com/sbrl/soundbox/master/soundbox.min.js)
|