]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/action.py
Fix global fadout
[perso/Immae/Projets/Python/MusicSampler.git] / 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()