I already saw this question asked on the list multiple times, but none
of the answers were able to help me.
So, my problem is that SDL_Mixer plays files with at least a sec of lag.
I am using mingw32(Dev-C++)
and winXP, SDL-1.2.8 and SDL_Mixer-1.2.6. I tried setting several buffer
sizes(512-4096, even extremes
like 64 or 65536), frequencies 11025-44100, both mono and stereo with
no luck.
Any ideas on how to solve this problem?
Still no ideas about the cause of the delay?
I’ve changed the code to work with FMOD, and it’s playing fine.
However, FMOD is not free, so I would still appreciate your input.
Try changing the chunk size to eg. 1024 or less. Hogs more CPU, but
gives less lag. See Mix_OpenAudio.
/OlofOn 8/8/05, Szalay Krist?f wrote:
Still no ideas about the cause of the delay?
I’ve changed the code to work with FMOD, and it’s playing fine.
However, FMOD is not free, so I would still appreciate your input.
Thanks for the input, but as I’ve mentioned one letter before, I have
tried using chunk sizes from 64 bytes to 65535 bytes to no avail.
However, if you have any other ideas, I would be happy to hear about them.
From: thunderstrike@freemail.hu (Szalay Kristof)
To: "A list for developers using the SDL library. (includes SDL-announce)"
Sent: Tuesday, August 09, 2005 2:32 PM
Subject: Re: [SDL] Sound delays with SDL_mixer
Thanks for the input, but as I’ve mentioned one letter before, I have
tried using chunk sizes from 64 bytes to 65535 bytes to no avail.
However, if you have any other ideas, I would be happy to hear about them.