mirror of
https://github.com/sbrl/soundbox.git
synced 2018-01-10 21:33:43 +00:00
Updated readme
This commit is contained in:
parent
d4c0f2683d
commit
8e9c81d9c3
1 changed files with 14 additions and 3 deletions
17
README.md
17
README.md
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue