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 ba86142..916b955 100644
--- a/helpers/music_file.py
+++ b/helpers/music_file.py
@@ -104,7 +104,7 @@ class MusicFile:
104 debug_print("Reloading « {} »".format(self.name)) 104 debug_print("Reloading « {} »".format(self.name))
105 initial_db_gain = gain(self.initial_volume_factor * 100) 105 initial_db_gain = gain(self.initial_volume_factor * 100)
106 self.audio_segment = pydub.AudioSegment \ 106 self.audio_segment = pydub.AudioSegment \
107 .from_file(self.filename) \ 107 .from_file(Config.music_path + self.filename) \
108 .set_frame_rate(Config.frame_rate) \ 108 .set_frame_rate(Config.frame_rate) \
109 .set_channels(Config.channels) \ 109 .set_channels(Config.channels) \
110 .set_sample_width(Config.sample_width) \ 110 .set_sample_width(Config.sample_width) \
@@ -125,7 +125,7 @@ class MusicFile:
125 self.mixer = self.mapping.mixer or Mixer() 125 self.mixer = self.mapping.mixer or Mixer()
126 initial_db_gain = gain(self.initial_volume_factor * 100) 126 initial_db_gain = gain(self.initial_volume_factor * 100)
127 self.audio_segment = pydub.AudioSegment \ 127 self.audio_segment = pydub.AudioSegment \
128 .from_file(self.filename) \ 128 .from_file(Config.music_path + self.filename) \
129 .set_frame_rate(Config.frame_rate) \ 129 .set_frame_rate(Config.frame_rate) \
130 .set_channels(Config.channels) \ 130 .set_channels(Config.channels) \
131 .set_sample_width(Config.sample_width) \ 131 .set_sample_width(Config.sample_width) \