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/__init__.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/__init__.py')
-rw-r--r-- | helpers/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helpers/__init__.py b/helpers/__init__.py index 807aa44..863a23b 100644 --- a/helpers/__init__.py +++ b/helpers/__init__.py | |||
@@ -32,6 +32,9 @@ def parse_args(): | |||
32 | default="config.yml", | 32 | default="config.yml", |
33 | required=False, | 33 | required=False, |
34 | help="Config file to load") | 34 | help="Config file to load") |
35 | parser.add_argument("-m", "--no-mixing", | ||
36 | action="store_true", | ||
37 | help="Don't make the mixing of sounds manually and let the sound system do it") | ||
35 | parser.add_argument("-l", "--latency", | 38 | parser.add_argument("-l", "--latency", |
36 | default="high", | 39 | default="high", |
37 | required=False, | 40 | required=False, |
@@ -80,6 +83,7 @@ def parse_args(): | |||
80 | Config.frame_rate = args.frame_rate | 83 | Config.frame_rate = args.frame_rate |
81 | Config.channels = args.channels | 84 | Config.channels = args.channels |
82 | Config.sample_width = args.sample_width | 85 | Config.sample_width = args.sample_width |
86 | Config.no_mixing = args.no_mixing | ||
83 | 87 | ||
84 | class SelectDeviceAction(argparse.Action): | 88 | class SelectDeviceAction(argparse.Action): |
85 | def __call__(self, parser, namespace, values, option_string=None): | 89 | def __call__(self, parser, namespace, values, option_string=None): |