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 alexz

I have no sound/music in Chrome 9.0.597.84.

Also Chrome throws the following exception when shooting a projectile while at least another projectile is currently active (flying):

Uncaught Error: INVALID_STATE_ERR: DOM Exception 11 - sound.js:86

which is the following line:

channels[0].currentTime = 0;

Removing that line gets rid of the exception and doesn't seem to have any sideeffects, though I still don't have any sound or music.

Sound and music work fine when using Firefox 3.6.13.
ImpactJs library used is 1.16.

I found this regarding the exception, hope it helps finding a solution:
http://kobesearch.cpan.org/htdocs/HTML-DOM/HTML/DOM/Exception.pm.html#INVALID_STATE_ERR_11

1 decade ago by dominic

Chrome attempts to load an .mp3 file with the same name. You probably only provided a .ogg file, since it's working in Firefox.

The reason that there's no "Couldn't load soundfile.mp3" message is because of another bug in Firefox3.6, where it would sometimes report an error even if the sound file loaded just fine.

So, long story short, if you have a soundfile.ogg, also provide a soundfile.mp3 in the same directory so Chrome, Safari and IE9 can load it.

1 decade ago by alexz

Ah thanks, that fixed it :-)

1 decade ago by fugufish

been having the same problem for IE9, and upon removing "channels[0].currentTime = 0;", my game doesn't crash any more. Anyone have any explanation to this?
Page 1 of 1
« first « previous next › last »