From 8e9c81d9c3ba7959cbb064ad7d1a0d1161cd98da Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 19 Feb 2015 20:25:39 +0000 Subject: [PATCH] Updated readme --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d991070..6aaa473 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,23 @@ # soundbox A super simple JS library for playing sound effects -To use: + * Current size: `1.04kb` + * Current minified size: `0.64kb` + +## To use: ```javascript var soundbox = new SoundBox(); -soundbox.add("beep", "beep.wav"); +soundbox.load("beep", "beep.wav"); // 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) +