[SDL] SDL_mixer error: Audio write: Invalid argument

William Brodie-Tyrrell william at brodie-tyrrell.org
Mon Oct 2 04:13:26 PDT 2006


What you want to do is SDL_putenv("SDL_AUDIODRIVER=alsa") inside the
source of my-program.  The business where you put the environment
variable assignment on the front of a command line is a bash-ism that
allows you to modify the environment for one statement.


Stoned koala bears drooled eucalyptus spit in awe as
benang at cs.its.ac.id said:

> 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.



-- 
William Brodie-Tyrrell

Carpe Diem - fish of the day.

<william at brodie-tyrrell.org>
http://www.brodie-tyrrell.org/




More information about the SDL mailing list