I'm about ready to chuck this god damn library in the bin. I had no issues with "HowlerJS" when doing this and it seems that SoundJS just refuses to load my mp3 files unless they have an extension.
My code is really simple, an array full of file id's is passed to the register sound function.
createjs.Sound.on("fileload", Audiocover._, this);
createjs.Sound.alternateExtensions = ["mp3"];
for(let i = 0; i < MusicPixels.length; i++)
{
debugLog("registered sound: " + "sound-" + i + " (" + resources.sounds[i] + ")" );
var sound = {
path: "/",
manifest:[
{id: "sound-" + i, src: {mp3: "file?id=" + resources.sounds[i]}}
]
}
createjs.Sound.registerSounds( sound );
}
That's it. If I include the extension .mp3, sound will play. With the current code, it does not show any errors. It just flat out refuses to play sound on Chrome. Anyway around this? Or will I have to literally use the raw locations.