CreateJS / SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
http://createjs.com/
MIT License
4.42k stars 838 forks source link

TypeError: null is not an object (evaluating 'c.context.createBuffer') #273

Open praine opened 7 years ago

praine commented 7 years ago

I have started getting the above error on iOS (10.3.1) Safari when using a manifest to preload SFX as follows:


var manifest=[{id:"correct", src:"/sfx/correct.mp3"},{id:"incorrect", src:"/sfx/incorrect.mp3"},{id:"click", src:"/sfx/click.mp3"},{id:"cancel", src:"/sfx/cancel.mp3"}];
var queue = new createjs.LoadQueue(); 
createjs.Sound.alternateExtensions = ["mp3"];
queue.installPlugin(createjs.Sound);
queue.addEventListener("fileload", handleFileLoad);
queue.addEventListener("complete", handleComplete);
queue.addEventListener("progress", handleProgress);
queue.loadManifest(manifest); // Throws above error
createjs.Sound.volume=0.1;

No error is thrown on desktop browsers (Safari, Chrome, Firefox)

lannymcnie commented 7 years ago

Any chance you can provide a sample? Haven't seen this before.