1
0
Fork 0

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"));
```
### Additional Functionality
Get the current version of SoundBox:
```javascript
console.log(`Soundbox is at ${SoundBox.version}`);
```
## 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).

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() {
this.sounds = {};
this.load = function(sound_name, path, callback) {
@ -36,3 +44,5 @@ function SoundBox() {
}
};
}
SoundBox.version = "0.2";