[SDL] SDL_mixer error: Audio write: Invalid argument

benang at cs.its.ac.id benang at cs.its.ac.id
Sun Oct 1 18:40:39 PDT 2006


No use. I added either:  SDL_putenv ("SDL_AUDIODRIVER=alsa ./my-program");
or SDL_putenv ("SDL_AUDIODRIVER=dsp ./my-program"); the problem still
exist. Or maybe I should use either eSound or Arts? Because apparently all
the other game from the distro eg. SuperTux, TuxRacer, etc worked fine.


>
>> 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
>
> --ryan.
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>






More information about the SDL mailing list