• Home
  • Raw
  • Download

Lines Matching refs:pvs

211     ALpv *pvs;  in python2params()  local
216 pvs = PyMem_NEW(ALpv, npvs); in python2params()
220 if (!PyArg_ParseTuple(item, "iO", &pvs[i].param, &item)) 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()
229 *pvsp = pvs; in python2params()
235 if (pvs) in python2params()
236 PyMem_DEL(pvs); in python2params()
1419 ALpv *pvs; in al_GetParams() local
1426 pvs = PyMem_NEW(ALpv, npvs); in al_GetParams()
1435 pvs[i].param = (int) PyInt_AsLong(item); in al_GetParams()
1437 if (alGetParamInfo(resource, pvs[i].param, &pinfo[i]) < 0) 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()
1461 pvs[i].value.ptr = PyMem_NEW(char, 32); in al_GetParams()
1462 pvs[i].sizeIn = 32; in al_GetParams()
1479 pvs[i].sizeIn /= pinfo[i].maxElems2; in al_GetParams()
1480 pvs[i].size2In = pinfo[i].maxElems2; in al_GetParams()
1483 if (alGetParams(resource, pvs, npvs) < 0) in al_GetParams()
1488 if (pvs[i].sizeOut < 0) { in al_GetParams()
1501 item = PyString_FromString(pvs[i].value.ptr); in al_GetParams()
1502 PyMem_DEL(pvs[i].value.ptr); in al_GetParams()
1506 pvs[i].sizeOut *= pvs[i].size2Out; in al_GetParams()
1510 item = PyList_New(pvs[i].sizeOut); in al_GetParams()
1511 for (j = 0; j < pvs[i].sizeOut; j++) { in al_GetParams()
1516 PyList_SetItem(item, j, PyInt_FromLong((long) ((int *) pvs[i].value.ptr)[j])); in al_GetParams()
1519 … PyList_SetItem(item, j, PyLong_FromLongLong(((long long *) pvs[i].value.ptr)[j])); in al_GetParams()
1522 … PyList_SetItem(item, j, PyFloat_FromDouble(alFixedToDouble(((long long *) pvs[i].value.ptr)[j]))); in al_GetParams()
1529 PyMem_DEL(pvs[i].value.ptr); in al_GetParams()
1532 item = param2python(resource, pvs[i].param, pvs[i].value, &pinfo[i]); in al_GetParams()
1536 PyList_SetItem(v, i, Py_BuildValue("(iO)", pvs[i].param, in al_GetParams()
1542 PyMem_DEL(pvs); in al_GetParams()
1549 if (pvs) in al_GetParams()
1550 PyMem_DEL(pvs); in al_GetParams()
1564 ALpv *pvs; in al_SetParams() local
1570 npvs = python2params(resource, -1, pvslist, &pvs, &pinfo); in al_SetParams()
1574 if (alSetParams(resource, pvs, npvs) < 0) in al_SetParams()
1582 PyMem_DEL(pvs[i].value.ptr); in al_SetParams()
1586 PyMem_DEL(pvs); in al_SetParams()
1594 if (pvs) in al_SetParams()
1595 PyMem_DEL(pvs); in al_SetParams()