X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/f5301e6f8629f30e872e20133844975404691a99..50de70078a398fcefd89b1171cd8d0026d716e61:/src/minwii/app.py?ds=sidebyside diff --git a/src/minwii/app.py b/src/minwii/app.py index 444aafc..a0fa9da 100755 --- a/src/minwii/app.py +++ b/src/minwii/app.py @@ -34,7 +34,7 @@ SCREEN_PLAY = 2 class MinWii(object): - def __init__(self, wiimoteSupport=True, fullscreen=False) : + def __init__(self, wiimoteSupport=True, fullscreen=False, audioDriver=None) : envLogger.info('winwii log format version : %s', LOG_FORMAT_VERSION) self.wiimoteSupport = wiimoteSupport self.fullscreen = fullscreen @@ -43,7 +43,7 @@ class MinWii(object): themedir = os.path.sep.join(themedir) theme = Theme(themedir) self.app = Desktop(theme=theme) - self.synth = Synth() + self.synth = Synth(driver=audioDriver) self.screenResolution = SCREEN_RESOLUTION envLogger.info('résolution écran : %s', self.screenResolution) self.nwiimotes = 0