Re: Zombie Baseball
Posted: Wed Feb 23, 2011 6:19 am
I don't know where it's from, I just found it on some website.
So something's happening six seconds after a sound is played. I've noticed when I quit the game after some sound has played I get this on the command line:
I just tried running the game, swinging the bat and quitting five seconds later, and I got that message. Then I tried swinging the bat and quitting seven seconds later. No message. So I guess playing a sound creates a buffer which is deleted six seconds later, and for some reason that's causing a crash. I tried it on Windows 7 (32 bit) and it didn't crash, so maybe there's a bug with OpenAL on Win7 x64?
I noticed a couple of other weird things when I ran it in Windows. The framerate was terrible, and the bat showed up as a white rectangle rather than the nice bat graphic. Could that be a power of two thing? The dimensions of the image are powers of two, but it's not square. Does that matter?
So something's happening six seconds after a sound is played. I've noticed when I quit the game after some sound has played I get this on the command line:
Code: Select all
AL lib: ALc.c:1818: alcCloseDevice(): deleting 1 Buffer(s)
I noticed a couple of other weird things when I ran it in Windows. The framerate was terrible, and the bat showed up as a white rectangle rather than the nice bat graphic. Could that be a power of two thing? The dimensions of the image are powers of two, but it's not square. Does that matter?