Questions tagged [soundjs]

A Javascript library that provides a simple API, and powerful features to make working with audio a breeze. Part of the CreateJS suite.

About

The SoundJS library manages the playback of audio on the web. It works via plugins which abstract the actual audio implementation, so playback is possible on any platform without specific knowledge of what mechanisms are necessary to play sounds.

Sample Code

 createjs.Sound.alternateExtensions = ["mp3"];
 createjs.Sound.addEventListener("fileload", createjs.proxy(this.loadHandler, this));
 createjs.Sound.registerSound("path/to/mySound.ogg", "sound");
 function loadHandler(event) {
     // This is fired for each sound that is registered.
     var instance = createjs.Sound.play("sound");  // play using id.  Could also use full sourcepath or event.src.
     instance.addEventListener("complete", createjs.proxy(this.handleComplete, this));
     instance.volume = 0.5;
 }

Resources

Related tags

81 questions
0
votes
1 answer

Trying to use SoundJS and jQuery's selectable but the sound doesn't work on firefox

here is my problem, i'm trying to use SoundJS (A library that i used before several times) and jQuery's Selectable library, the wierd part is that all the funcions of Selectable are working, and the SoundJS funcions ONLY works on GOOGLE CHROME and…
0
votes
1 answer

Buffered audio in SoundJS

I'm using SoundJS 0.5.2 to play audio in a music player that I'm designing for a client. According to the documentation, I have to register or preload an audio file before I can use it, by using the registerSound method of the Sound Class and the…
Abhishek Goyal
  • 867
  • 1
  • 7
  • 21
0
votes
1 answer

How can I tell if my soundjs soundInstance is paused vs completed?

I'm using soundjs to build a simple sound mixer with standard pause/play/scrub functionality for each track. I have everything working well, from creating a manifest, to creating soundInstances per "track" when they are added to a play list. But I…
Jeff
  • 35
  • 5
0
votes
1 answer

SoundJS: Firefox is not able to play a mp3

I am currently working on a website that includes a musicplayer made with SoundJS. I, myself, am using Google Chrome to test and debug my website, and it worked like a charm, but when I recently tested it in FireFox, I noticed this strange…
0
votes
2 answers

Adding event.preventDefault() Kills SoundJS

I have an existing javascript game I'm trying to add sound to using SoundJS. The problem I'm having is that the line of code that prevents the iphone from dragging the window around when the player moves their finger across the screen is also…
Nightmare Games
  • 2,205
  • 6
  • 28
  • 46
-3
votes
2 answers

Best and most lightweight javascript for play sound in mobile devices

I want implement to my web-app sound notifications with volume control and selection of sounds. So when user will receive example message then webapp execute selected sound with currently set volume level. Requirements: No jQuery…
Makromat
  • 1,540
  • 5
  • 26
  • 47
1 2 3 4 5
6