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

14 lines
244 B
Python

from .adaptation import PulseAudioDriver
import pyglet
_debug = pyglet.options['debug_media']
def create_audio_driver():
driver = PulseAudioDriver()
driver.connect()
if _debug:
driver.dump_debug_info()
return driver