예제 #1
0
static PyObject*
_device_getenumvalue (PyObject *self, PyObject *args)
{
    ALCenum val;
    PyObject *freeme;
    char *enumname;
    
    if (!ASCIIFromObj (args, &enumname, &freeme))
        return NULL;
    CLEAR_ALCERROR_STATE ();
    val = alcGetEnumValue (PyDevice_AsDevice (self), (const ALchar*)enumname);
    Py_XDECREF (freeme);
    if (SetALCErrorException (alcGetError (PyDevice_AsDevice (self)), 0))
        return NULL;
    return PyInt_FromLong ((long)val);
}
예제 #2
0
파일: openal.c 프로젝트: AmesianX/RosWine
ALCenum CDECL wine_alcGetEnumValue(ALCdevice *device, const ALCchar *enumname)
{
    return alcGetEnumValue(device, enumname);
}
예제 #3
0
AL_API ALenum AL_APIENTRY alGetEnumValue(const ALchar *enumName)
{
    if(!enumName)
        return (ALenum)0;
    return alcGetEnumValue(NULL, enumName);
}