createjssoundjspreloadjs

CreateJS - Issue loading sounds in IE11


I've run across a weird issue with sound file loading in IE11. I have a manifest of about a dozen images and then about 8 sound files. What's happening is versions of IE11 that have even the slightest modifications in the security settings are hanging up when trying to load the sound files. No errors, it just hangs. Any ideas?

Code below. Working fine in Chrome, Safari, FireFox and most IEs. Just some instances it loading everything up until the sounds and then it just stops.

var imagePath = "Game/images/";
var audioPath = "Game/sounds/";
manifest = [
    { src: imagePath + "BG.png", id: "bgImg" },
    { src: imagePath + "Game-Sign.png", id: "gameSign" },
    { src: imagePath + "Start-Title.png", id: "startTitle" },
    { src: imagePath + "Start-Button-Sprite.png", id: "btnStart" },
    { src: imagePath + "Continue-Button-Sprite.png", id: "btnContinue" },
    { src: audioPath + "clunk01.mp3", id: "sndClunk01" },
    { src: audioPath + "clunk02.mp3", id: "sndClunk02" },
    { src: audioPath + "clunk03.mp3", id: "sndClunk03" }
];

 var queue;
 queue = new createjs.LoadQueue(true);
 queue.installPlugin(createjs.Sound);
 createjs.Sound.alternateExtensions = ["ogg"];
 queue.addEventListener("complete", handleComplete);
 queue.loadManifest(manifest);

Solution

  • The code looks fine. There were some bugs in handle errors in the 0.6.0 versions, can you try SoundJS-Next with PreloadJS-Next and let me know if that fixes the hanging issue.

    Hope that helps.