This was bothering me too and I tracked down the issue.

There is a debian patch that fixes a typo in 'resource.py' to correctly
set the right variable if the sound system is disabled. The issue is
that the sound system is never enabled by that point, so the patch
effectively disables sound for all users!

An easy fix for this is to simply delay this check until when sounds are
requested. It's kind of ugly, but it works fine and restores sound to
the game.

The patch is pretty simple so I'll just paste it here. I have no
experience with debian packaging/patches/etc so someone else is going to
have to get this applied correctly to the package.

As a side note I am currently running 1.4-1 from testing.

--- lightyears-1.4.orig/code/resource.py        2014-06-07 16:58:05.000000000 
+0000
+++ lightyears-1.4/code/resource.py     2014-06-07 16:58:27.307760647 +0000
@@ -14,9 +14,6 @@
 __snd_cache = dict()
 __snd_disabled = False

-if not pygame.mixer or not pygame.mixer.get_init():
-       __snd_disabled = True
-
 DATA_DIR = os.path.abspath(os.path.join(
                 os.path.dirname(sys.argv[ 0 ]), "data"))

@@ -91,6 +88,8 @@

     if ( __snd_disabled ):
         return None
+    elif not pygame.mixer or not pygame.mixer.get_init():
+        __snd_disabled = True

     if ( __snd_cache.has_key(name) ):
         return __snd_cache[ name ]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to