Lines Matching refs:args
19 audioop_getsample(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
29 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
33 _PyArg_BadArgument("getsample", "argument 1", "contiguous buffer", args[0]);
36 width = _PyLong_AsInt(args[1]);
42 PyObject *iobj = _PyNumber_Index(args[2]);
76 audioop_max(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
85 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
89 _PyArg_BadArgument("max", "argument 1", "contiguous buffer", args[0]);
92 width = _PyLong_AsInt(args[1]);
120 audioop_minmax(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
129 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
133 _PyArg_BadArgument("minmax", "argument 1", "contiguous buffer", args[0]);
136 width = _PyLong_AsInt(args[1]);
164 audioop_avg(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
173 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
177 _PyArg_BadArgument("avg", "argument 1", "contiguous buffer", args[0]);
180 width = _PyLong_AsInt(args[1]);
208 audioop_rms(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
217 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
221 _PyArg_BadArgument("rms", "argument 1", "contiguous buffer", args[0]);
224 width = _PyLong_AsInt(args[1]);
253 audioop_findfit(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
262 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
266 _PyArg_BadArgument("findfit", "argument 1", "contiguous buffer", args[0]);
269 if (PyObject_GetBuffer(args[1], &reference, PyBUF_SIMPLE) != 0) {
273 _PyArg_BadArgument("findfit", "argument 2", "contiguous buffer", args[1]);
305 audioop_findfactor(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
314 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
318 _PyArg_BadArgument("findfactor", "argument 1", "contiguous buffer", args[0]);
321 if (PyObject_GetBuffer(args[1], &reference, PyBUF_SIMPLE) != 0) {
325 _PyArg_BadArgument("findfactor", "argument 2", "contiguous buffer", args[1]);
357 audioop_findmax(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
366 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
370 _PyArg_BadArgument("findmax", "argument 1", "contiguous buffer", args[0]);
375 PyObject *iobj = _PyNumber_Index(args[1]);
409 audioop_avgpp(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
418 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
422 _PyArg_BadArgument("avgpp", "argument 1", "contiguous buffer", args[0]);
425 width = _PyLong_AsInt(args[1]);
453 audioop_maxpp(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
462 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
466 _PyArg_BadArgument("maxpp", "argument 1", "contiguous buffer", args[0]);
469 width = _PyLong_AsInt(args[1]);
497 audioop_cross(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
506 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
510 _PyArg_BadArgument("cross", "argument 1", "contiguous buffer", args[0]);
513 width = _PyLong_AsInt(args[1]);
542 audioop_mul(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
552 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
556 _PyArg_BadArgument("mul", "argument 1", "contiguous buffer", args[0]);
559 width = _PyLong_AsInt(args[1]);
563 if (PyFloat_CheckExact(args[2])) {
564 factor = PyFloat_AS_DOUBLE(args[2]);
568 factor = PyFloat_AsDouble(args[2]);
598 audioop_tomono(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
609 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
613 _PyArg_BadArgument("tomono", "argument 1", "contiguous buffer", args[0]);
616 width = _PyLong_AsInt(args[1]);
620 if (PyFloat_CheckExact(args[2])) {
621 lfactor = PyFloat_AS_DOUBLE(args[2]);
625 lfactor = PyFloat_AsDouble(args[2]);
630 if (PyFloat_CheckExact(args[3])) {
631 rfactor = PyFloat_AS_DOUBLE(args[3]);
635 rfactor = PyFloat_AsDouble(args[3]);
665 audioop_tostereo(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
676 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
680 _PyArg_BadArgument("tostereo", "argument 1", "contiguous buffer", args[0]);
683 width = _PyLong_AsInt(args[1]);
687 if (PyFloat_CheckExact(args[2])) {
688 lfactor = PyFloat_AS_DOUBLE(args[2]);
692 lfactor = PyFloat_AsDouble(args[2]);
697 if (PyFloat_CheckExact(args[3])) {
698 rfactor = PyFloat_AS_DOUBLE(args[3]);
702 rfactor = PyFloat_AsDouble(args[3]);
732 audioop_add(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
742 if (PyObject_GetBuffer(args[0], &fragment1, PyBUF_SIMPLE) != 0) {
746 _PyArg_BadArgument("add", "argument 1", "contiguous buffer", args[0]);
749 if (PyObject_GetBuffer(args[1], &fragment2, PyBUF_SIMPLE) != 0) {
753 _PyArg_BadArgument("add", "argument 2", "contiguous buffer", args[1]);
756 width = _PyLong_AsInt(args[2]);
788 audioop_bias(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
798 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
802 _PyArg_BadArgument("bias", "argument 1", "contiguous buffer", args[0]);
805 width = _PyLong_AsInt(args[1]);
809 bias = _PyLong_AsInt(args[2]);
837 audioop_reverse(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
846 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
850 _PyArg_BadArgument("reverse", "argument 1", "contiguous buffer", args[0]);
853 width = _PyLong_AsInt(args[1]);
881 audioop_byteswap(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
890 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
894 _PyArg_BadArgument("byteswap", "argument 1", "contiguous buffer", args[0]);
897 width = _PyLong_AsInt(args[1]);
926 audioop_lin2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
936 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
940 _PyArg_BadArgument("lin2lin", "argument 1", "contiguous buffer", args[0]);
943 width = _PyLong_AsInt(args[1]);
947 newwidth = _PyLong_AsInt(args[2]);
978 audioop_ratecv(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
993 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
997 _PyArg_BadArgument("ratecv", "argument 1", "contiguous buffer", args[0]);
1000 width = _PyLong_AsInt(args[1]);
1004 nchannels = _PyLong_AsInt(args[2]);
1008 inrate = _PyLong_AsInt(args[3]);
1012 outrate = _PyLong_AsInt(args[4]);
1016 state = args[5];
1020 weightA = _PyLong_AsInt(args[6]);
1027 weightB = _PyLong_AsInt(args[7]);
1056 audioop_lin2ulaw(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1065 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
1069 _PyArg_BadArgument("lin2ulaw", "argument 1", "contiguous buffer", args[0]);
1072 width = _PyLong_AsInt(args[1]);
1100 audioop_ulaw2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1109 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
1113 _PyArg_BadArgument("ulaw2lin", "argument 1", "contiguous buffer", args[0]);
1116 width = _PyLong_AsInt(args[1]);
1144 audioop_lin2alaw(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1153 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
1157 _PyArg_BadArgument("lin2alaw", "argument 1", "contiguous buffer", args[0]);
1160 width = _PyLong_AsInt(args[1]);
1188 audioop_alaw2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1197 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
1201 _PyArg_BadArgument("alaw2lin", "argument 1", "contiguous buffer", args[0]);
1204 width = _PyLong_AsInt(args[1]);
1233 audioop_lin2adpcm(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1243 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
1247 _PyArg_BadArgument("lin2adpcm", "argument 1", "contiguous buffer", args[0]);
1250 width = _PyLong_AsInt(args[1]);
1254 state = args[2];
1280 audioop_adpcm2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1290 if (PyObject_GetBuffer(args[0], &fragment, PyBUF_SIMPLE) != 0) {
1294 _PyArg_BadArgument("adpcm2lin", "argument 1", "contiguous buffer", args[0]);
1297 width = _PyLong_AsInt(args[1]);
1301 state = args[2];