Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

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.

1 decade ago by SlotGamer

SOLVED- I found that the "Play sounds in web pages" was turned off for some reason in IE10 (probably to get my game to load at some point). I turned it on and it works now.

However, I still wonder why going directly to the resource URL itself works even with "Play sounds in web pages" turned off.

As an added note, having that flag turned off stops many of the games on the impactjs.com/games from loading

But, for now my issue is resolved.
Page 1 of 1
« first « previous next › last »