Difficult-Rocket/libs/pyglet/media/drivers/pulse/__init__.py

14 lines
244 B
Python
Raw Normal View History

2021-04-16 23:21:06 +08:00
from .adaptation import PulseAudioDriver
import pyglet
2021-04-16 23:21:06 +08:00
_debug = pyglet.options['debug_media']
def create_audio_driver():
driver = PulseAudioDriver()
driver.connect()
if _debug:
driver.dump_debug_info()
return driver