[SDL] SDL_Mixer lag
william at brodie-tyrrell.org
Fri Sep 1 21:35:04 PDT 2006
Stoned koala bears drooled eucalyptus spit in awe as
benang at cs.its.ac.id said:
> Thanks alot. So basically I just have to add this line, right?
> system("export SDL_AUDIODRIVER=alsa");
Or even better:
setenv("SDL_AUDIODRIVER", "alsa", 1);
Doing it your way means you're dependent on the user having a
sh-compatible shell and makes some assumptions about environment
handling. Doing it with the proper setenv() call directly changes just
your process' environment.
Carpe Diem - fish of the day.
<william at brodie-tyrrell.org>
More information about the SDL