SDL SDL_Sound SMPEG ... Skipping during playback

Howdy –

I’ve found a couple references to this problem, but no solution
yet. About a year ago, there was indication that a fix was patched
into SDL, but I’m still hearing the problem.

Win32
SDL 1.2.4
SDL_Sound 0.1.4 (as far as I can tell from the .h)
SMPEG Binary, came with SDL_Sound

I’m only using the SDL sound routines, in a simple Win32 app.
In the player callback, I fill the stream with decoded data
which I have stored in a buffer. It seems like during each
itirance of the callback, there’s a little skip… a tick.

I’ve played with the audio_buffersize and decode_buffersize and
samples (even all the way up to 2^16) and still notice the problem.

I don’t have the problem if I’m playing a .wav file, which makes me
think it’s SMPEG decoding that’s causing the problem?

Has anyone else had this problem? Anyone know of a fix or workaround?

Thanks

Rob

Yes, I have the same problem too, so I am starting to use another
library for sound…:frowning:
Anyway the glitching in mp3 playback with SDL_mixer was really bad
even
with 22Khz-16Bit
downsampling, and it uses too much of CPU too…I really hope that’ll
be
fixed one day, I really
like SDL, but not for sound, not for good sound, believe me…> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
R
Bresner
Sent: Friday, October 04, 2002 3:25 AM
To: sdl at libsdl.org
Subject: [SDL] SDL SDL_Sound SMPEG … Skipping during playback

Howdy –

I’ve found a couple references to this problem, but no solution yet.
About a year ago, there was indication that a fix was patched into
SDL,
but I’m still hearing the problem.

Win32
SDL 1.2.4
SDL_Sound 0.1.4 (as far as I can tell from the .h)
SMPEG Binary, came with SDL_Sound

I’m only using the SDL sound routines, in a simple Win32 app. In the
player callback, I fill the stream with decoded data which I have
stored
in a buffer. It seems like during each itirance of the callback,
there’s
a little skip… a tick.

I’ve played with the audio_buffersize and decode_buffersize and
samples
(even all the way up to 2^16) and still notice the problem.

I don’t have the problem if I’m playing a .wav file, which makes me
think it’s SMPEG decoding that’s causing the problem?

Has anyone else had this problem? Anyone know of a fix or workaround?

Thanks

Rob


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

I’m only using the SDL sound routines, in a simple Win32 app.
In the player callback, I fill the stream with decoded data
which I have stored in a buffer. It seems like during each
itirance of the callback, there’s a little skip… a tick.

Can you post a link to the source and data you’re using in your
program? I’ll be happy to take a look…

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment