This is fixed in our Subversion repository, but a stopgap patch
for the Debian release is attached.
Rafal, could you try this patch and verify that it keeps you from having
to pass -nosound? Use patch -p1 from inside the E:S directory.
P
Index: code/g.py
===================================================================
--- code/g.py (revision 409)
+++ code/g.py (working copy)
@@ -110,10 +110,16 @@
#Load all sounds from the data directory.
def load_sounds():
global sounds
+ global nosound
if nosound == 1: return 0
#Looking at the pygame docs, I don't see any way to determine if SDL_mixer
#is loaded on the target machine. This may crash.
- pygame.mixer.init()
+ try:
+ pygame.mixer.init()
+ except:
+ sys.stderr.write("WARNING: Could not initialize mixer.\n")
+ nosound = 1
+ return
temp_snd_array = listdir(data_loc)
for file_name in temp_snd_array: