New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

buzzhx

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buzzhx

Extern classes of Buzz for Haxe - A Javascript HTML5 Audio library.

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
14
55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Haxelib Version Build Status Built with Grunt

haxe buzz logo

Externs of Buzz for Haxe - A Javascript HTML5 Audio library.

Installation

haxelib install buzz

Demo

  • Haxe Buzz Demo

Look at the samples folder for the source code of above example.

Usage


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();
	}
}

Licensing Information

MIT license

This content is released under the MIT License.

Buzz is written by Jay Salvat and licensed under the MIT License.

Keywords

javascript

FAQs

Package last updated on 13 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts