projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout de l'option --audio-driver.
[minwii.git]
/
src
/
minwii
/
app.py
diff --git
a/src/minwii/app.py
b/src/minwii/app.py
index
29326fd
..
a0fa9da
100755
(executable)
--- a/
src/minwii/app.py
+++ b/
src/minwii/app.py
@@
-34,7
+34,7
@@
SCREEN_PLAY = 2
class MinWii(object):
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
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)
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
self.screenResolution = SCREEN_RESOLUTION
envLogger.info('résolution écran : %s', self.screenResolution)
self.nwiimotes = 0
@@
-99,10
+99,11
@@
class MinWii(object):
if self.fullscreen :
displayFlags = displayFlags | pygame.FULLSCREEN
pygame.display.set_mode(self.screenResolution, displayFlags)
if self.fullscreen :
displayFlags = displayFlags | pygame.FULLSCREEN
pygame.display.set_mode(self.screenResolution, displayFlags)
- pygame.display.set_caption('MIN
Wii
')
+ pygame.display.set_caption('MIN
Ds
')
WT = self.WT
WT = self.WT
- songFile, playMode, displayNotes, wiimoteIndex = '', 'NORMAL', True, 0
+ # valeurs par défaut des options
+ songFile, playMode, displayNotes, wiimoteIndex = '', 'NORMAL', False, 0
while True :
WT.resume()
while True :
WT.resume()
@@
-220,3
+221,5
@@
class _WTFacade :
pass
def get_count(self) :
return None
pass
def get_count(self) :
return None
+ def quit(self) :
+ pass