[SDL] SDL_mixer error: Audio write: Invalid argument

Ryan C. Gordon icculus at icculus.org
Sat Sep 30 09:00:27 PDT 2006

> Yeah, it's in Linux SuSE 10.0. I don't know the sound card as it is
> onboard but I guess it is a Realtek AC97.

It's possible that using the ALSA instead of OSS target (or the other 
way around) may work better. These are two separate kernel subsystems 
for audio playback on Linux, and SDL can target either one.

   # The ALSA SDL backend.
   SDL_AUDIODRIVER=alsa ./my-program

   # The OSS SDL backend.
   SDL_AUDIODRIVER=dsp ./my-program


More information about the SDL mailing list