Esempio n. 1
0
 def get_extensions(self):
     extensions = alc.alcGetString(self._device, alc.ALC_EXTENSIONS)
     if pyglet.compat_platform == 'darwin' or pyglet.compat_platform.startswith(
             'linux'):
         return ctypes.cast(extensions, ctypes.c_char_p).value.split(' ')
     else:
         return _split_nul_strings(extensions)
Esempio n. 2
0
 def get_extensions(self):
     extensions = alc.alcGetString(self._device, alc.ALC_EXTENSIONS)
     if sys.platform == 'darwin' or sys.platform.startswith('linux'):
         return ctypes.cast(extensions, ctypes.c_char_p).value.split(' ')
     else:
         return _split_nul_strings(extensions)
Esempio n. 3
0
 def get_extensions(self):
     extensions = alc.alcGetString(self._device, alc.ALC_EXTENSIONS)
     if sys.platform in ("darwin", "linux2"):
         return ctypes.cast(extensions, ctypes.c_char_p).value.split(" ")
     else:
         return _split_nul_strings(extensions)
Esempio n. 4
0
 def get_extensions(self):
     extensions = alc.alcGetString(self._device, alc.ALC_EXTENSIONS)
     if sys.platform in ('darwin', 'linux2'):
         return ctypes.cast(extensions, ctypes.c_char_p).value.split(' ')
     else:
         return _split_nul_strings(extensions)
Esempio n. 5
0
 def get_extensions(self):
     extensions = alc.alcGetString(self._device, alc.ALC_EXTENSIONS)
     if pyglet.compat_platform == "darwin" or pyglet.compat_platform.startswith("linux"):
         return ctypes.cast(extensions, ctypes.c_char_p).value.split(" ")
     else:
         return _split_nul_strings(extensions)
Esempio n. 6
0
def get_extensions():
    extensions = alc.alcGetString(context._device, alc.ALC_EXTENSIONS)
    if sys.platform == 'darwin':
        return ctypes.cast(extensions, ctypes.c_char_p).value.split(' ')
    else:
        return _split_nul_strings(extensions)
Esempio n. 7
0
def get_extensions():
    extensions = alc.alcGetString(context._device, alc.ALC_EXTENSIONS)
    if sys.platform == "darwin":
        return ctypes.cast(extensions, ctypes.c_char_p).value.split(" ")
    else:
        return _split_nul_strings(extensions)