James Paige wrote: > import os > import sys > if sys.platform == 'linux2': > if os.environ.has_key('SDL_AUDIODRIVER') == False: > os.environ['SDL_AUDIODRIVER'] = 'dsp'
I think Ian's solution of putting it in the user's .bashrc is much more appropriate and more targeted. After all, this is a workaround to make *all* pygame programs work on *his* computer. Any code that he puts in his own game is likely to affect that *one* game on *all* computers instead. Of course, Andrew can write whatever code he likes, to do whatever he likes! But I think that in the absence of widely-known bugs with the ALSA driver on all Linux apps, putting this code into all games he writes is the wrong approach. Ethan
signature.asc
Description: OpenPGP digital signature