Sound Delays :s


acron^

Still Fresh
Joined
Oct 23, 2006
Messages
9
A bit of searching has informed me that the GP2X can get temperamental with SDL_Mixer if the audio specs aren't set up properly. Now, this is pedantic but i'm writing a shooting game and currently there's about a 500ms delay between pushing the button and the 'fire' sound playing. This is annoying :s

My current audio specs are:

Code:
Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, AUDIO_S16, MIX_DEFAULT_CHANNELS, 256);

I initially tried using SDL_Audio. Man, what a hideous experience.

Anyone got any ideas? :s
 
try changing the 256 in the Mix_OpenAudio call to 128. the setting of 256 should be fine though so maybe there is a problem elsewhere in the code.
 
Hmmm....I swear I'd tried that already!

Oh well :) Thanks!

Also, bit off topic but will other people need specific SDL libraries on their GP2X (such as SDL_mixer) to run my game? I'm fairly sure i'm linking statically as my .gpe is up to nearly 6mb :s
 
have you stripped the GPE after its been compiled? from memory its "strip filename.gpe", that should remove the unnecessary stuff from the gpe and reduce the filesize by quite a bit depending on what libs you are using.

if you want to get the filesize even smaller afterwards you can use the gpe compressor, its on the gp2x archive.
 
OK, i'll give that a try, cheers.

But still, will people need the libs I've used?
 
Back
Top