Lines Matching refs:pinfo
59 param2python(int resource, int param, ALvalue value, ALparamInfo *pinfo) in param2python() argument
63 if (pinfo == NULL) { in param2python()
64 pinfo = &info; in param2python()
68 switch (pinfo->elementType) { in param2python()
135 python2param(int resource, ALpv *param, PyObject *value, ALparamInfo *pinfo) in python2param() argument
141 if (pinfo == NULL) { in python2param()
142 pinfo = &info; in python2param()
146 switch (pinfo->valueType) { in python2param()
148 if (pinfo->elementType != AL_CHAR_ELEM) { in python2param()
165 switch (pinfo->elementType) { in python2param()
182 …if (python2elem(item, (void *) ((char *) param->value.ptr + i*stepsize), pinfo->elementType) < 0) { in python2param()
189 switch (pinfo->elementType) { in python2param()
194 pinfo->elementType); in python2param()
198 pinfo->elementType); in python2param()
212 ALparamInfo *pinfo; in python2params() local
217 pinfo = PyMem_NEW(ALparamInfo, npvs); in python2params()
222 if (alGetParamInfo(resource1, pvs[i].param, &pinfo[i]) < 0 && in python2params()
223 alGetParamInfo(resource2, pvs[i].param, &pinfo[i]) < 0) in python2params()
225 if (python2param(resource1, &pvs[i], item, &pinfo[i]) < 0) in python2params()
230 *pinfop = pinfo; in python2params()
237 if (pinfo) in python2params()
238 PyMem_DEL(pinfo); in python2params()
1421 ALparamInfo *pinfo; in al_GetParams() local
1427 pinfo = PyMem_NEW(ALparamInfo, npvs); in al_GetParams()
1437 if (alGetParamInfo(resource, pvs[i].param, &pinfo[i]) < 0) in al_GetParams()
1439 switch (pinfo[i].valueType) { in al_GetParams()
1443 pinfo[i].maxElems *= pinfo[i].maxElems2; in al_GetParams()
1448 switch (pinfo[i].elementType) { in al_GetParams()
1452 pvs[i].value.ptr = PyMem_NEW(int, pinfo[i].maxElems); in al_GetParams()
1453 pvs[i].sizeIn = pinfo[i].maxElems; in al_GetParams()
1457 pvs[i].value.ptr = PyMem_NEW(long long, pinfo[i].maxElems); in al_GetParams()
1458 pvs[i].sizeIn = pinfo[i].maxElems; in al_GetParams()
1477 if (pinfo[i].valueType == AL_MATRIX_VAL) { in al_GetParams()
1478 pinfo[i].maxElems /= pinfo[i].maxElems2; in al_GetParams()
1479 pvs[i].sizeIn /= pinfo[i].maxElems2; in al_GetParams()
1480 pvs[i].size2In = pinfo[i].maxElems2; in al_GetParams()
1495 switch (pinfo[i].valueType) { in al_GetParams()
1512 switch (pinfo[i].elementType) { in al_GetParams()
1532 item = param2python(resource, pvs[i].param, pvs[i].value, &pinfo[i]); in al_GetParams()
1543 PyMem_DEL(pinfo); in al_GetParams()
1551 if (pinfo) in al_GetParams()
1552 PyMem_DEL(pinfo); in al_GetParams()
1565 ALparamInfo *pinfo; in al_SetParams() local
1570 npvs = python2params(resource, -1, pvslist, &pvs, &pinfo); in al_SetParams()
1579 switch (pinfo[i].valueType) { in al_SetParams()
1587 PyMem_DEL(pinfo); in al_SetParams()
1596 if (pinfo) in al_SetParams()
1597 PyMem_DEL(pinfo); in al_SetParams()
1611 ALparamInfo pinfo; in al_QueryValues() local
1647 if (alGetParamInfo(resource, param, &pinfo) < 0) in al_QueryValues()
1654 item = param2python(resource, param, return_set[i], &pinfo); in al_QueryValues()
1690 ALparamInfo pinfo; in al_GetParamInfo() local
1695 if (alGetParamInfo(res, param, &pinfo) < 0) in al_GetParamInfo()
1700 item = PyInt_FromLong((long) pinfo.resource); in al_GetParamInfo()
1704 item = PyInt_FromLong((long) pinfo.param); in al_GetParamInfo()
1708 item = PyInt_FromLong((long) pinfo.valueType); in al_GetParamInfo()
1712 if (pinfo.valueType != AL_NO_VAL && pinfo.valueType != AL_SCALAR_VAL) { in al_GetParamInfo()
1714 item = PyInt_FromLong((long) pinfo.maxElems); in al_GetParamInfo()
1718 if (pinfo.valueType == AL_MATRIX_VAL) { in al_GetParamInfo()
1720 item = PyInt_FromLong((long) pinfo.maxElems2); in al_GetParamInfo()
1726 item = PyInt_FromLong((long) pinfo.elementType); in al_GetParamInfo()
1730 item = PyString_FromString(pinfo.name); in al_GetParamInfo()
1734 item = param2python(res, param, pinfo.initial, &pinfo); in al_GetParamInfo()
1738 if (pinfo.elementType != AL_ENUM_ELEM && in al_GetParamInfo()
1739 pinfo.elementType != AL_RESOURCE_ELEM && in al_GetParamInfo()
1740 pinfo.elementType != AL_CHAR_ELEM) { in al_GetParamInfo()
1742 item = param2python(res, param, pinfo.min, &pinfo); in al_GetParamInfo()
1746 item = param2python(res, param, pinfo.max, &pinfo); in al_GetParamInfo()
1750 item = param2python(res, param, pinfo.minDelta, &pinfo); in al_GetParamInfo()
1754 item = param2python(res, param, pinfo.maxDelta, &pinfo); in al_GetParamInfo()
1758 item = PyInt_FromLong((long) pinfo.specialVals); in al_GetParamInfo()