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 6a28d62..b926c64 100644
--- a/helpers/music_file.py
+++ b/helpers/music_file.py
@@ -152,8 +152,8 @@ class MusicFile(Machine):
152 with self.music_lock: 152 with self.music_lock:
153 self.current_audio_segment = new_audio_segment 153 self.current_audio_segment = new_audio_segment
154 154
155 def set_volume(self, value, add = False): 155 def set_volume(self, value, delta = False):
156 [db_gain, self.volume] = gain(value + int(add) * self.volume, self.volume) 156 [db_gain, self.volume] = gain(value + int(delta) * self.volume, self.volume)
157 157
158 self.set_gain(db_gain) 158 self.set_gain(db_gain)
159 159