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

Add version number to library.

This commit is contained in:
Starbeamrainbowlabs 2017-07-31 18:57:55 +01:00
parent f5e2d23da1
commit eb7c27789e
2 changed files with 17 additions and 0 deletions

View file

@ -41,6 +41,13 @@ soundbox.play("beep-a")
.then(() => soundbox.play("victory")); .then(() => soundbox.play("victory"));
``` ```
### Additional Functionality
Get the current version of SoundBox:
```javascript
console.log(`Soundbox is at ${SoundBox.version}`);
```
## Download ## Download
The latest master should be perfectly stable. If you want something that you know will work, try the latest [release](https://github.com/sbrl/soundbox/releases). The latest master should be perfectly stable. If you want something that you know will work, try the latest [release](https://github.com/sbrl/soundbox/releases).

View file

@ -1,3 +1,11 @@
/**
* SoundBox
* By Starbeamrainbowlabs
* A super simple JS library for playing sound effects and other audio.
*
* Note to self: When making a release, remember to update the version number at the bottom of the file!
*/
function SoundBox() { function SoundBox() {
this.sounds = {}; this.sounds = {};
this.load = function(sound_name, path, callback) { this.load = function(sound_name, path, callback) {
@ -36,3 +44,5 @@ function SoundBox() {
} }
}; };
} }
SoundBox.version = "0.2";