[SDL] SDL_mixer delay
Gabriel Gambetta
mystml at adinet.com.uy
Fri Aug 4 07:52:09 PDT 2006
Hola Facundo,
> When I ran the game I got a delay (from 0.5 second to 1 second)
> between the action and the moment when the corresponding sound was heard.
Delays in SDL_mixer are usually caused by the fact that the mixer buffer
is a FIFO, you push data on one end and it comes out from the other end
to the soundcard. The bigger this buffer, the higher delay you have
between putting data and hearing it. The size of this buffer is
controlled by a parameter when you open the mixer.
Why this problem manifests when you use your version but not the
precompiled version baffles me, however. It may be caused by something
entirely different.
Good luck,
--Gabriel
________________________________________________________________________
Gabriel Gambetta
Mystery Studio - http://www.mysterystudio.com
Gabriel on Graphics - http://gabrielongraphics.blogspot.com
More information about the SDL
mailing list