def init(): gthread = pyglet.lib.load_library('gthread-2.0') thread_supported = ctypes.cast(gthread.g_threads_got_initialized, ctypes.POINTER(ctypes.c_int)).contents.value if not thread_supported: gthread.g_thread_init(None) openal.init() gstreamer.init() openal_plugin = OpenALPlugin() openal_plugin.register()
def init(): openal.init()