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 Glasswalker

Hey, I've been working on a game last couple days, and just now added sound/music. Now I'm getting fairly consistant lockups/crashes. The game locks hard, and the browser starts spewing the following JS error:
Uncaught ReferenceError: tddhis is not defined

This is in Chrome running on Linux.
(Chrome Version 19.0.1084.56)

Using all .ogg files (for sound and music)

My code isn't minified, but if Dominic wants to see it I'll share it of course.

Anyone seen this before? Or have any suggestions?

1 decade ago by Glasswalker

Ok as it turns out I'm an idiot. This was simply a typo lol. It happened inline with adding sound.

However, I am getting sound problems after a couple minutes of play the sound drops to a crackly/tinny sound, and even if I reload the game, or open in a new tab it continues. Only closing the browser will solve (and no JS errors being thrown). I assume that's a browser error.

Any thoughts?

1 decade ago by Arantor

There were definitely bugs in Chrome's implementation of HTML5 audio, because it's not really designed for sound effects but general media playing, so lots of rapid repeats etc. it doesn't work so good.

Question: does it happen in Biolab Disaster (playbiolab.com)?

1 decade ago by Glasswalker

Doesn't appear to happen in Biolab. And yes my game definitely has rapid repeats (fairly rapid fire gun sound). That's likely it in chrome. I'll do some testing in other browsers.

Thanks!
Page 1 of 1
« first « previous next › last »