fetch up pyglet
This commit is contained in:
parent
f95d7f96ec
commit
5a123389ae
@ -1,12 +1,20 @@
|
||||
"""Drivers for playing back media."""
|
||||
|
||||
import sys
|
||||
import atexit
|
||||
|
||||
import pyglet
|
||||
|
||||
_debug = pyglet.options['debug_media']
|
||||
_is_pyglet_doc_run = hasattr(sys, "is_pyglet_doc_run") and sys.is_pyglet_doc_run
|
||||
|
||||
|
||||
if _is_pyglet_doc_run:
|
||||
from . import silent
|
||||
_audio_driver = silent.create_audio_driver()
|
||||
|
||||
else:
|
||||
|
||||
for driver_name in pyglet.options['audio']:
|
||||
try:
|
||||
if driver_name == 'pulse':
|
||||
@ -45,9 +53,9 @@ for driver_name in pyglet.options['audio']:
|
||||
import traceback
|
||||
|
||||
traceback.print_exc()
|
||||
|
||||
else:
|
||||
from . import silent
|
||||
|
||||
_audio_driver = silent.create_audio_driver()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user