1
0
Fork 0
mirror of https://github.com/sbrl/soundbox.git synced 2018-01-10 21:33:43 +00:00

Updated readme

This commit is contained in:
Starbeamrainbowlabs 2015-02-19 20:25:39 +00:00
parent d4c0f2683d
commit 8e9c81d9c3

View file

@ -1,12 +1,23 @@
# soundbox # soundbox
A super simple JS library for playing sound effects A super simple JS library for playing sound effects
To use: * Current size: `1.04kb`
* Current minified size: `0.64kb`
## To use:
```javascript ```javascript
var soundbox = new SoundBox(); var soundbox = new SoundBox();
soundbox.add("beep", "beep.wav"); soundbox.load("beep", "beep.wav");
// later.... // later....
soundbox.play("beep"); 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)