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

Is there a way to get the raw data from a sound in SoundJS for reading custom headers?

I am using SoundJS from CreateJS and I was wondering, is there anyway I can get the raw (hex) data of an audio playing? I am adding a custom header into the audio file for lip syncing characters but I don't know how to get the audio's raw Hex…
WindowsTV
  • 1
  • 2
0
votes
1 answer

First Time SoundJS User, Can't Seem To Get A Sound To Play

I'm just... trying to get SoundJS to play a sound. It appears that the file never load as my handleLoad function is never called. Any ideas? var audioPath = "snd/"; var sounds = [ { id: "mySound", src: "gaia.mp3" } ]; …
0
votes
0 answers

Loading Sound using Preloadjs fails, but does not call error event

I use the following code to load and play a sound using the CreateJS library. This works fine, but the problem is that neither callback is called when a file could not be loaded, for example the sound does not exist on the server (this is a valid…
Ferry Kranenburg
  • 2,625
  • 1
  • 17
  • 23
0
votes
1 answer

SoundJS - registering 4 sounds in an audiosprite

I'm loading a SoundJS 1.0 audiosprite with preloadJS 1.0. The audiosprite is split into 4 sounds which I'm calling a,b,c and d. (Elsewhere in the code it randomizes which of the 4 sounds to play.) Here's the basic loading and declaration code: var…
dijon
  • 359
  • 1
  • 9
  • 21
0
votes
1 answer

Reverb in SoundJS

I know WebAudio supports reverb through a Convolver passthrough (https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConvolver). Is there any way to apply reverb with SoundJS? I'm working on a game and would like to apply the…
Mischawaka
  • 225
  • 2
  • 10
0
votes
0 answers

How to do sequency sounds using Adobe Flash (Animate) HTML5 Canvas Javascript

I want to play sequency sounds in one frame. I tried a lot of methods, but the sounds generally are mixing or colliding. Main idea is that there is a queue which is like playlist and automatically pop it in this queue after the playing sound or it…
sbk
  • 1
  • 1
0
votes
1 answer

createjs, soundjs, preloadjs Sound not working in Safari desktop Version 9.1.3, OSX 10.11.6

I have sound working in Chrome, Firefox on Mac, but not Safari Version 9.1.3, OSX 10.11.6. I can only find a statement in the docs saying that Safari will need the Quicktime plugin. However, when I point my Safari to the Soundjs and Preloadjs demo…
0
votes
1 answer

SoundJS: Partial Preload

I am developing a simple quiz game for fun. The player has to listen to a MP3 file and guess the associated game and/or character's name. Currently, I am preloading the whole audio file through SoundJS. The game can be tried here:…
0
votes
2 answers

Change global volumen with SoundJs

I'm creating an application in HTML5 using CreateJS. By starting with the part of sounds, using SoundJS, I have seen that has many limitations. The createjs.Sound object has the method of play() and stop(). But play() executes only a specific sound…
RafelSanso
  • 33
  • 6
0
votes
2 answers

HTML Audio in IE

I am having an issue in IE 10 and IE 11 where if the audio device is disabled my website will not load. Looking at the console the load does not progress past loading the first audio item. I am using soundjs does anyone know if there is a way to…
nontechguy
  • 751
  • 5
  • 21
0
votes
1 answer

CreateJS - Type not recognized error thrown during sound registration

I am trying to load sounds through the SoundJS sound registration, and getting the following error: createjs.js:15 Uncaught Error: Type not recognized. I figure that the soundjs library is having issues either locating my files or having trouble…
0
votes
1 answer

Play file using SoundJS in Firefox

I am using SoundJS lib to play various mp3/wav files in my web app, however I added a new file but it didn't work at all in FireFox while it is working fine on Chrome. I tried wav/mp3/ogg encoding but none worked with me. I googled around a little…
Sami
  • 5,819
  • 1
  • 23
  • 30
0
votes
1 answer

SoundJS not starting in iOS

I am getting nuts a little bit. I am working on SoundJS app for an alarm. The user will share a link and when somebody click on it, after the user defined time the alarm will sound. I have this…
Alex Frenkel
  • 409
  • 5
  • 15
0
votes
1 answer

Is there a `unload` item for Createjs' preloadjs/soundjs

Once you've loaded a mp3 into a sound object via createjs, how dow you destroy & clear it from memory?
tolmark
  • 1,746
  • 1
  • 13
  • 19
0
votes
2 answers

Flash HTML5 canvas conditions for audio.pause and resume function

Despite my readings I'm still limited in javascipt / soundJS syntax with using flash html5 canvas. I would like to pause and resume my sound with mouseover and mouseout events on the same button. I mean: You hover the button: the music starts. You…