Example #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);
}
Example #2
0
ALCenum CDECL wine_alcGetEnumValue(ALCdevice *device, const ALCchar *enumname)
{
    return alcGetEnumValue(device, enumname);
}
Example #3
0
AL_API ALenum AL_APIENTRY alGetEnumValue(const ALchar *enumName)
{
    if(!enumName)
        return (ALenum)0;
    return alcGetEnumValue(NULL, enumName);
}