]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/action.py
Fix fade_out
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / action.py
index 1cb168650c765301039a48132f34eb2684119c26..42a08d0b875136ab4459abf4ea9ea239a496227d 100644 (file)
@@ -69,7 +69,7 @@ class Action:
             music.stop(fade_out = fade_out)
         else:
             if fade_out > 0:
-                pygame.fadeout(fade_out * 1000)
+                pygame.fadeout(int(fade_out * 1000))
             else:
                 pygame.mixer.stop()