default="config.yml",
required=False,
help="Config file to load")
- parser.add_argument("-m", "--no-mixing",
+ parser.add_argument("-m", "--builtin-mixing",
action="store_true",
- help="Don't make the mixing of sounds manually and let the sound system do it")
+ help="Make the mixing of sounds manually (do it if the system cannot handle it correctly)")
parser.add_argument("-l", "--latency",
default="high",
required=False,
Config.frame_rate = args.frame_rate
Config.channels = args.channels
Config.sample_width = args.sample_width
- Config.no_mixing = args.no_mixing
+ Config.builtin_mixing = args.builtin_mixing
class SelectDeviceAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
ready_color = ListProperty([1, 165/255, 0, 1])
def __init__(self, **kwargs):
- if Config.no_mixing:
- self.mixer = None
- else:
+ if Config.builtin_mixing:
self.mixer = Mixer()
+ else:
+ self.mixer = None
self.key_config, self.open_files = self.parse_config()
super(Mapping, self).__init__(**kwargs)
self._keyboard = Window.request_keyboard(self._keyboard_closed, self)
Machine.__init__(self, states=states, transitions=transitions, initial='initial')
+ # FIXME: catch error here
self.mixer = mapping.mixer or Mixer()
self.volume = 100
self.mapping = mapping