diff pytouhou/lib/sdl.pyx @ 528:7c3c90468996

Inherit music players from a base class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 18 Dec 2013 22:36:23 +0100
parents b39ad30c6620
children a7dc55ad9380
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pyx
+++ b/pytouhou/lib/sdl.pyx
@@ -66,7 +66,9 @@ class SDL(object):
                 logger.error(u'Impossible to set up audio subsystem: %s', error)
                 self.sound = False
             else:
-                mix_allocate_channels(MAX_CHANNELS) #TODO: make it dependent on the SFX number.
+                # TODO: make it dependent on the number of sound files in the
+                # archives.
+                mix_allocate_channels(MAX_SOUNDS)
 
     def __exit__(self, *args):
         if self.sound: