An old message - SDL_Mixer problems

Hi!

I was searching old messages in the SDL mailing list and found this mail
from you, dated Wed Apr 24 17:02:00 2002. I’m having exactly the same
problem (delays in Win32 and Linux, also stutter in Win32).

I wanted to know if you finally found the problem, because it’s really
driving me crazy!

Thanks a lot,

    --Gabriel
    
    I've been using SDL_Mixer for quite a few months now and so far I cannot get 
    it to work properly. I can get good sound and music playing but there is an 
    unacceptable delay in playing the sounds. This delay
    seems to be anywhere from 0.5 secs to 1 sec. This won't do for things like 
    pressing interface buttons or creatures attacking.
    
    I can't understand why there should be a delay in playing a sound. To me it 
    should just play immediately.
    
    I have tried different values using Mix_OpenAudio but I can't get an 
    acceptable result. If the buffer size is below 8192 the sounds and music 
    start to stutter. I've tried this on a Win 95 P200 and a Win 2000 P1.5 Gig 
    machine and I get the same result.
    
    When I run the examples supplied with SDL_Mixer I get the same problems so 
    it doesn't seem to be a problem with my code.
    
    Has anyone managed to get past this or is SDL_Mixer not suitable for PCs?
    
    Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 1024) // stutter
    Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 2048) // stutter
    Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 4096) // stutter
    Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 8192) // good but lags________________________________________________________________________

A/I Gabriel Gambetta
mail ggambett at adinet.com.uy
web http://gabrielgambetta.port5.com
icq 9388521
There are 10 kinds of people:
those who understand binary,
and those who don’t

Hi!

I was searching old messages in the SDL mailing list and found this mail
from you, dated Wed Apr 24 17:02:00 2002. I’m having exactly the same
problem (delays in Win32 and Linux, also stutter in Win32).

I wanted to know if you finally found the problem, because it’s really
driving me crazy!

I’ve never seen this problem. Can you send me a link to a complete
project with data files that I can use to reproduce and debug the
problem?

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

What type of soundcard are you using?

I experienced this on a Dell laptop with an ess maestro chip - All other
machines seemed to work fine…

Message: 7From: ggambett@adinet.com.uy (Gabriel Gambetta)
To: David Moffatt
Organization:
Date: 09 Feb 2003 16:34:30 -0300
Subject: [SDL] An old message - SDL_Mixer problems
Reply-To: sdl at libsdl.org

I was searching old messages in the SDL mailing list and found this mail
from you, dated Wed Apr 24 17:02:00 2002. I’m having exactly the same
problem (delays in Win32 and Linux, also stutter in Win32).

I wanted to know if you finally found the problem, because it’s really
driving me crazy!

Thanks a lot,

    --Gabriel

What type of soundcard are you using?

I experienced this on a Dell laptop with an ess maestro chip - All other
machines seemed to work fine…

I have experienced this too, I have a Creative Vibra sound card.
Initially I thought that there might be a silence before the sfx,
but come to think of it, the lag was too long for that.On Wed, 12 Feb 2003, Bob Cober wrote:

I was searching old messages in the SDL mailing list and found this mail
from you, dated Wed Apr 24 17:02:00 2002. I’m having exactly the same
problem (delays in Win32 and Linux, also stutter in Win32).

I wanted to know if you finally found the problem, because it’s really
driving me crazy!

You know I am seeing this too with a NForce1 based mother board with
integrated sound, Red Hat 7.3 without an upgraded kernel running in
GNOME.

I still notice that on boot the first time I run this program that the
mixer will not initialize. I get around this problem, HACK, by starting
another program first that initializes the Sound then exec’s my game.
Then the mixer opens properly for my game every time.

I will also note that sound only worked every so often when the
SDL_AUDIODEVICE was default. If I set it to dsp, the mixer open would
succeed every time other then the boot problem. However, the sound
would still play with a bit of a delay, including MPEGs which I hooked
into SDL_Mixer. Is there a way to disable ESD? Could this be the
process that is having the problem?

Oh, and here’s another creepy part. My game has an opening sequence
where it goes through a bunch of MPEGs. If I let the game sit long
enough, cycling through these MPEGs and a few other WAVs it eventually
syncs up.

Any help would be appreciated,
RobertOn Wed, 2003-02-12 at 22:00, Pallav Nawani wrote:

On Wed, 12 Feb 2003, Bob Cober wrote:

What type of soundcard are you using?

I experienced this on a Dell laptop with an ess maestro chip - All other
machines seemed to work fine…

I have experienced this too, I have a Creative Vibra sound card.
Initially I thought that there might be a silence before the sfx,
but come to think of it, the lag was too long for that.

I was searching old messages in the SDL mailing list and found this mail
from you, dated Wed Apr 24 17:02:00 2002. I’m having exactly the same
problem (delays in Win32 and Linux, also stutter in Win32).

I wanted to know if you finally found the problem, because it’s really
driving me crazy!


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