1 decade ago by SlotGamer
I have sounds playing in my game on firefox and chrome. But in Internet Explorer 10, it hangs on the loading screen continuing to draw. So it seems on IE10, the sounds are not loading. When I look at the Network capture in IE tools, I see images and .js loading but nowhere do I see any sound files being loaded like when inpecting it in Chrome.
Disabling sound makes it work. However I would like to get sound working on IE10.
I stepped through ig.SoundManager::load() and it is calling clip.load(); I think this is what should actually trigger the action to GET the sound file?
I see nothing printing in the console log either.
I also tried changing this to true as another post mentioned but it did not help:
clip.addEventListener( 'error', function(ev){
loadCallback( path, true, ev );
}, false);
I also tried reading .mp3 first but that didn't help:
ig.Sound.use = [ig.Sound.FORMAT.MP3, ig.Sound.FORMAT.OGG];
Anyone have any idea what this issue might be? If the Network capture doesn't even show that it is trying to download any .mp3 or .ogg files, does that mean something is wrong with my server set up (currently just debugging locally with Apache).
Copying/pasting the url from javascript debugger directly into address bar in IE10 works, so I know the url is correct and it shows that IE10 can definitely play my file directly.
As another test, I tried loading an .mp3 file from a different website altogether:
window.ig.music.add( 'http://robtowns.com/music/blind_willie.mp3' );
But even that does not show it loading in the Network tab in the IE10 debugger.
Like I said, Firefox and Chrome work fine.
Disabling sound makes it work. However I would like to get sound working on IE10.
I stepped through ig.SoundManager::load() and it is calling clip.load(); I think this is what should actually trigger the action to GET the sound file?
I see nothing printing in the console log either.
I also tried changing this to true as another post mentioned but it did not help:
clip.addEventListener( 'error', function(ev){
loadCallback( path, true, ev );
}, false);
I also tried reading .mp3 first but that didn't help:
ig.Sound.use = [ig.Sound.FORMAT.MP3, ig.Sound.FORMAT.OGG];
Anyone have any idea what this issue might be? If the Network capture doesn't even show that it is trying to download any .mp3 or .ogg files, does that mean something is wrong with my server set up (currently just debugging locally with Apache).
Copying/pasting the url from javascript debugger directly into address bar in IE10 works, so I know the url is correct and it shows that IE10 can definitely play my file directly.
As another test, I tried loading an .mp3 file from a different website altogether:
window.ig.music.add( 'http://robtowns.com/music/blind_willie.mp3' );
But even that does not show it loading in the Network tab in the IE10 debugger.
Like I said, Firefox and Chrome work fine.