Changeset 573:af59e3bbe92e for src
- Timestamp:
- 12/06/14 14:01:58 (10 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/mlx.py
r535 r573 2 2 from config import Config 3 3 from i18n import setLanguage 4 from sound import initializeSound 4 from sound import initializeSound, finalizeSound 5 5 from util import secondaryInstallation 6 6 from const import VERSION … … 96 96 97 97 gui.run() 98 99 finalizeSound() 98 100 finally: 99 101 gui.flushStdIO() -
src/mlx/sound.py
r422 r573 172 172 extra = extra) 173 173 174 def finalizeSound(): 175 """Finalize the sound handling.""" 176 pass 177 174 178 #------------------------------------------------------------------------------ 175 179 … … 243 247 super(SoundThread, self).__init__() 244 248 245 self.daemon = True249 self.daemon = False 246 250 self.eventLoop = SoundThread.EventLoop(soundsDirectory) 247 251 … … 269 273 extra = extra) 270 274 275 def finalizeSound(): 276 """Finalize the sound handling.""" 277 pyglet.app.exit() 278 271 279 except: 272 280 print "The pyglet library is missing from your system. It is needed for sound playback on Linux" … … 281 289 FIXME: it does not do anything currently, but it should.""" 282 290 print "sound.startSound:", name 291 292 def finalizeSound(): 293 """Finalize the sound handling.""" 294 pass 283 295 284 296 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.