Temporarily disable background audio clock.
@@ -45,22 +45,24 @@ from pyglet.media.codecs.base import Source, SourceGroup
_debug = pyglet.options['debug_media']
-class AudioClock(pyglet.clock.Clock):
- """A dedicated background Clock for refilling audio buffers."""
-
- def __init__(self, interval=0.1):
- super().__init__()
- self._interval = interval
- self._thread = threading.Thread(target=self._tick_clock, daemon=True)
- self._thread.start()
-
- def _tick_clock(self):
- while True:
- self.tick()
- self.sleep(self._interval * 1000000)
-
+# class AudioClock(pyglet.clock.Clock):
+# """A dedicated background Clock for refilling audio buffers."""
+#
+# def __init__(self, interval=0.1):
+# super().__init__()
+# self._interval = interval
+# self._thread = threading.Thread(target=self._tick_clock, daemon=True)
+# self._thread.start()
+#
+# def _tick_clock(self):
+# while True:
+# self.tick()
+# self.sleep(self._interval * 1000000)
+#
+#
+# clock = AudioClock()
-clock = AudioClock()
+clock = pyglet.clock.get_default()
class PlaybackTimer:
