Sound delays with SDL_mixer

Hello,

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?

Thanks in advance,
Kristof Szalay

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,
Thunder

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,
Thunder


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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.

Thunder

i havent ever tried SDL_mixer but i have used fmod with GREAT success!

i didnt have to tweak buffer sizes or do anything really, you might want to
check it out

http://www.fmod.org/> ----- Original Message -----

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.

Thunder


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

This was also mentioned a letter before; it works nicely with FMOD,
however FMOD is not free software, so I prefer not to use it.
Thunder