Buzz Javascript Sound

March 23rd, 2014




Buzz Javascript Sound Library.

This is possibly the easiest way to implement sound using javascript. I used it in Flappy Loach(link removed). Sounds can be played using simple methods such as “sound1.play();”, volume can be set by using the function “sound1.setVolume(volume);”, and many other simple methods.

Simple Demo:

Start with the audio source:

var mySound = new buzz.sound(“http://joeybabcock.me/projects/flappy/assets/sounds/mus_ame.ogg”);

mySound is the variable containing the sound and “new buzz.sound” is the initiator.

To play your new sound type mySound.play(); into the javascript console(F12 on chrome), or click This Link(link removed) for a demo of what you can do.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *