]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Fix global fadout
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 25 Jun 2016 21:21:22 +0000 (23:21 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 25 Jun 2016 21:21:22 +0000 (23:21 +0200)
helpers/action.py

index 42a08d0b875136ab4459abf4ea9ea239a496227d..d4c6252db70df932f954cc94e0ef26db75322b55 100644 (file)
@@ -69,7 +69,7 @@ class Action:
             music.stop(fade_out = fade_out)
         else:
             if fade_out > 0:
-                pygame.fadeout(int(fade_out * 1000))
+                pygame.mixer.fadeout(int(fade_out * 1000))
             else:
                 pygame.mixer.stop()