Changeset 995:ad90726834d4 for src/mlx/sound.py
- Timestamp:
- 07/04/19 17:39:03 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/sound.py
r961 r995 212 212 213 213 In case of successful initialization, the directory of the sound files 214 is read, the command reader thread is created and the gobject main loop214 is read, the command reader thread is created and the GObject main loop 215 215 is executed.""" 216 216 try: … … 218 218 gi.require_version("Gst", "1.0") 219 219 from gi.repository import Gst 220 from gi.repository import GObject as gobject220 from gi.repository import GObject 221 221 222 222 Gst.init(None) … … 275 275 It is to be executed in a separate thread and it reads the incoming 276 276 queue for commands. The commands with their arguments are added to the 277 idle queue of gobject so that _handleCommand will be called by them.277 idle queue of GObject so that _handleCommand will be called by them. 278 278 279 279 If COMMAND_QUIT is received, the thread exits.""" … … 282 282 (command, args) = inQueue.get() 283 283 284 gobject.idle_add(_handleCommand, command, args)284 GObject.idle_add(_handleCommand, command, args) 285 285 if command==COMMAND_QUIT: 286 286 break … … 291 291 292 292 293 mainLoop = gobject.MainLoop()293 mainLoop = GObject.MainLoop() 294 294 mainLoop.run() 295 295
Note:
See TracChangeset
for help on using the changeset viewer.