asmodehn / sdlut

SDL utility toolkit - A C++ wrapper arount SDL 1.2
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Can't run game/test when initAudio() is used #5

Open asmodehn opened 10 years ago

asmodehn commented 10 years ago

XorfacX: Ok, ill try to explain what is actually the bug but it's not easy coz there is no crash. When i try to run P0 or even the testAudio on my system, there is 50% chance (perhaps even more) that it will launch but simply stop/loop right on App::getInstance().initAudio(). It happen randomly, there is no crash and if i re run the game or the test it might do the same thing or run normally and go on to the next instruction. First i thought it was due to bad/incorrect parameters inside initAudio() (frequency or channel pb) but it don't seems to be. Anyway ive no other clue. It started a while ago (almost right after the lastest big update on sdlut's audio part) and still continue. It never happens in release mode (or it's not so notciable due to compiler optimisation ?) but only in debug. I don't think it's a VS problem coz i've tested w 2005(+-sp1) and 2008(+-sp1) and the pb remains the same. It's quite annoying coz sometimes i've to run the game 10 times before it can pass this code line and when you're in debuging phase u need to run the code often ;)

asmodehn commented 10 years ago

A task has been related to this.