(self)
Start the main interface event loop.
Start the main interface event loop.
Start the main interface event loop .
def run(self):
        """Start the main interface event loop."""
        with self._audio:
            with self._video:
                while self._audio.alive or self._video.alive:
                    # ensure both queues are drained
                    self._video.cycle()
                    self._audio.cycle()
                    if not self._audio.busy and not self._video.busy:
                        # nothing to do, come back later
                        self._video.sleep(DELAY)
def run ( self ) : with self . _audio : with self . _video : while self . _audio . alive or self . _video . alive : # ensure both queues are drained self . _video . cycle ( ) self . _audio . cycle ( ) if not self . _audio . busy and not self . _video . busy : # nothing to do, come back later self . _video . sleep ( DELAY )