diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-17 14:48:59 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-17 14:48:59 +0200 |
commit | af27d78259265bdada147757cd64488f44dd524d (patch) | |
tree | a9e8232596645f217bef7923024fe65e8487421e /helpers/mapping.py | |
parent | 75d6cdbac628b57e206cd37808c1d3c7fecbb9eb (diff) | |
download | MusicSampler-af27d78259265bdada147757cd64488f44dd524d.tar.gz MusicSampler-af27d78259265bdada147757cd64488f44dd524d.tar.zst MusicSampler-af27d78259265bdada147757cd64488f44dd524d.zip |
Add the possibility to use the system mixer
Diffstat (limited to 'helpers/mapping.py')
-rw-r--r-- | helpers/mapping.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/mapping.py b/helpers/mapping.py index 8e0265c..cfc2c3f 100644 --- a/helpers/mapping.py +++ b/helpers/mapping.py | |||
@@ -17,7 +17,10 @@ class Mapping(RelativeLayout): | |||
17 | ready_color = ListProperty([1, 165/255, 0, 1]) | 17 | ready_color = ListProperty([1, 165/255, 0, 1]) |
18 | 18 | ||
19 | def __init__(self, **kwargs): | 19 | def __init__(self, **kwargs): |
20 | self.mixer = Mixer() | 20 | if Config.no_mixing: |
21 | self.mixer = None | ||
22 | else: | ||
23 | self.mixer = Mixer() | ||
21 | self.key_config, self.open_files = self.parse_config() | 24 | self.key_config, self.open_files = self.parse_config() |
22 | super(Mapping, self).__init__(**kwargs) | 25 | super(Mapping, self).__init__(**kwargs) |
23 | self._keyboard = Window.request_keyboard(self._keyboard_closed, self) | 26 | self._keyboard = Window.request_keyboard(self._keyboard_closed, self) |