diff options
Diffstat (limited to 'helpers/mapping.py')
-rw-r--r-- | helpers/mapping.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/mapping.py b/helpers/mapping.py index d9b7ba0..84845fc 100644 --- a/helpers/mapping.py +++ b/helpers/mapping.py | |||
@@ -28,8 +28,8 @@ class Mapping(RelativeLayout): | |||
28 | def master_gain(self): | 28 | def master_gain(self): |
29 | return gain(self.master_volume) | 29 | return gain(self.master_volume) |
30 | 30 | ||
31 | def set_master_volume(self, value, add = False): | 31 | def set_master_volume(self, value, delta = False): |
32 | [db_gain, self.master_volume] = gain(value + int(add) * self.master_volume, self.master_volume) | 32 | [db_gain, self.master_volume] = gain(value + int(delta) * self.master_volume, self.master_volume) |
33 | for music in self.open_files.values(): | 33 | for music in self.open_files.values(): |
34 | music.set_gain(db_gain) | 34 | music.set_gain(db_gain) |
35 | 35 | ||