SDL_Mixer noise

Hi

I’m trying play some 16bit mono samples from memory. For that I’m
using Mix_OpenAudio function to initialize the audio device with only
a channel and 44100hz, and later I create the Mix_Chunk with
Mix_QuickLoad_RAW function. The samples sounds well when I use the oss
alsa emulation driver, but the problem comes when I use the alsa
driver, the sound has lots of annoying clicks. When I initialize the
audio device in stereo it sounds well.

How can I fix this without using oss?

Thanks and excuse my poor english,

Rodland.

This happens to me too. Mine are 16bit and 22050hz. I do it exactly
the same and use ALSA.

I think it might be related to the whether they are signed samples.

Any ideas?

ForrestOn Sat, May 17, 2008 at 1:38 PM, rodland wrote:

Hi

I’m trying play some 16bit mono samples from memory. For that I’m
using Mix_OpenAudio function to initialize the audio device with only
a channel and 44100hz, and later I create the Mix_Chunk with
Mix_QuickLoad_RAW function. The samples sounds well when I use the oss
alsa emulation driver, but the problem comes when I use the alsa
driver, the sound has lots of annoying clicks. When I initialize the
audio device in stereo it sounds well.

How can I fix this without using oss?

Thanks and excuse my poor english,

Rodland.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

This happens to me too. Mine are 16bit and 22050hz. I do it exactly
the same and use ALSA.

I think it might be related to the whether they are signed samples.

If everything plays incorrectly, it’s possibly an ALSA bug; if
everything else in SDL_mixer is playing correctly except that sound,
it’s definitely an SDL_mixer bug (since in that case, SDL_mixer would
handle the conversion to a format it’s otherwise playing correctly already).

–ryan.

Mix_QuickLoad_RAW says that it is not converted, but both of us are
confused about the format probably.

How is signed audio data represented?On Sat, May 17, 2008 at 9:00 PM, Ryan C. Gordon wrote:

This happens to me too. Mine are 16bit and 22050hz. I do it exactly
the same and use ALSA.

I think it might be related to the whether they are signed samples.

If everything plays incorrectly, it’s possibly an ALSA bug; if everything
else in SDL_mixer is playing correctly except that sound, it’s definitely an
SDL_mixer bug (since in that case, SDL_mixer would handle the conversion to
a format it’s otherwise playing correctly already).

–ryan.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org