X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/c89f2419dd73824a317cb00b43226ccf06a8b041..refs/heads/master:/src/minwii/start.py diff --git a/src/minwii/start.py b/src/minwii/start.py index 7de9b7a..74ab5bf 100755 --- a/src/minwii/start.py +++ b/src/minwii/start.py @@ -12,9 +12,10 @@ from optparse import OptionParser import pygame from app import MinWii -def main(wiimoteSupport, fullscreen) : +def main(wiimoteSupport, fullscreen, audioDriver) : pygame.init() - minwii = MinWii(wiimoteSupport=wiimoteSupport, fullscreen=fullscreen) + audioDriver = None if not audioDriver else audioDriver # cast de '' en None. fluidsynth le teste spécifiquement… + minwii = MinWii(wiimoteSupport=wiimoteSupport, fullscreen=fullscreen, audioDriver=audioDriver) minwii.run() pygame.quit() @@ -33,6 +34,11 @@ if __name__ == "__main__" : , default=False , help = u"activation du mode plein écran" u" [%default]") + op.add_option("--audio-driver", dest="audio_driver" + , action="store" + , default="coreaudio" + , help=u"driver audio pour le synthétiseur (fluidsynth) [%default]" + ) options, args = op.parse_args() - main(options.wiimoteSupport, options.fullscreen) + main(options.wiimoteSupport, options.fullscreen, options.audio_driver)