]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/__init__.py
Add the possibility to use the system mixer
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / __init__.py
index 807aa4403880128ce0d219c4af77364f05f1f2b4..863a23b06cccb0eeb4159ddef6fcaf45ba1da908 100644 (file)
@@ -32,6 +32,9 @@ def parse_args():
             default="config.yml",
             required=False,
             help="Config file to load")
+    parser.add_argument("-m", "--no-mixing",
+            action="store_true",
+            help="Don't make the mixing of sounds manually and let the sound system do it")
     parser.add_argument("-l", "--latency",
             default="high",
             required=False,
@@ -80,6 +83,7 @@ def parse_args():
     Config.frame_rate = args.frame_rate
     Config.channels = args.channels
     Config.sample_width = args.sample_width
+    Config.no_mixing = args.no_mixing
 
 class SelectDeviceAction(argparse.Action):
     def __call__(self, parser, namespace, values, option_string=None):