aboutsummaryrefslogtreecommitdiff
path: root/helpers/music_file.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/music_file.py')
-rw-r--r--helpers/music_file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/music_file.py b/helpers/music_file.py
index 1078459..667c169 100644
--- a/helpers/music_file.py
+++ b/helpers/music_file.py
@@ -42,7 +42,7 @@ class MusicFile:
42 else: 42 else:
43 sound = pygame.mixer.Sound(self.raw_data) 43 sound = pygame.mixer.Sound(self.raw_data)
44 44
45 self.channel().play(sound, fade_ms = fade_in * 1000) 45 self.channel().play(sound, fade_ms = int(fade_in * 1000))
46 self.flag_paused = False 46 self.flag_paused = False
47 47
48 def pause(self): 48 def pause(self):
@@ -55,7 +55,7 @@ class MusicFile:
55 55
56 def stop(self, fade_out = 0): 56 def stop(self, fade_out = 0):
57 if fade_out > 0: 57 if fade_out > 0:
58 self.channel().fadeout(fade_out * 1000) 58 self.channel().fadeout(int(fade_out * 1000))
59 else: 59 else:
60 self.channel().stop() 60 self.channel().stop()
61 61