annotate www/oi/js/jaysalvat-buzz-05c96cc/README.md @ 101:52e44ee1c791 tip master

enabled all scores in autostart script
author Rob Canning <rc@kiben.net>
date Tue, 21 Apr 2015 16:20:57 +0100
parents d802954248a7
children
rev   line source
rob@100 1 # Buzz, a Javascript HTML5 Audio library
rob@100 2
rob@100 3 Buzz is a small but powerful Javascript library that allows you to easily take advantage of the new HTML5 audio element. It tries to degrade properly on non-modern browsers.
rob@100 4
rob@100 5 var mySound = new buzz.sound( "/sounds/myfile", {
rob@100 6 formats: [ "ogg", "mp3", "acc" ]
rob@100 7 });
rob@100 8
rob@100 9 mySound.play()
rob@100 10 .fadeIn()
rob@100 11 .loop()
rob@100 12 .bind( "timeupdate", function() {
rob@100 13 var timer = buzz.toTimer( this.getTime() );
rob@100 14 document.getElementById( "timer" ).innerHTML = timer;
rob@100 15 });
rob@100 16
rob@100 17 ### Official website
rob@100 18 http://buzz.jaysalvat.com/
rob@100 19
rob@100 20 ### Real life demo
rob@100 21 http://buzz.jaysalvat.com/demo/
rob@100 22
rob@100 23 ### Documentation
rob@100 24 http://buzz.jaysalvat.com/documentation/