Extern classes of Buzz for Haxe - A Javascript HTML5 Audio library.
npm install buzzhx !Build Status 
=========
!haxe buzz logo
Externs of Buzz for Haxe - A Javascript HTML5 Audio library.
haxe
haxelib install buzz
`
$3
* Haxe Buzz Demo
Look at the samples folder for the source code of above example.
$3
`haxe
package ;
import buzz.Buzz;
import buzz.BuzzSound;
import buzz.events.BuzzEvent;
class Main {
var _sound:BuzzSound;
public function new() {
//autoplay is false by default
//this is just to show how you can set default properties
//like autoplay, loop, preload, etc
Buzz.defaults.autoplay = false;
Buzz.defaults.webAudioApi = true;
_sound = new BuzzSound("sounds/test", {
formats: [ "ogg", "mp3" ],
preload: true
});
_sound.bind(BuzzEvent.CAN_PLAYTHROUGH, _playSound);
}
function _playSound():Void {
_sound.play();
}
static function main() {
new Main();
}
}
``