#if defined(__CHAR_UNSIGNED__)
#if defined(signed)
-!ERROR!; READ THE SOURCE FILE!;
/* This module currently does not work on systems where only unsigned
characters are available. Take it out of Setup. Sorry. */
#endif
#define CLIP 32635
static unsigned char
-st_linear_to_ulaw( sample )
- int sample;
+st_linear_to_ulaw(int sample)
{
static int exp_lut[256] = {0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
static PyObject *AudioopError;
static PyObject *
-audioop_getsample(self, args)
- PyObject *self;
- PyObject *args;
+audioop_getsample(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0;
}
static PyObject *
-audioop_max(self, args)
- PyObject *self;
- PyObject *args;
+audioop_max(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0;
}
static PyObject *
-audioop_minmax(self, args)
- PyObject *self;
- PyObject *args;
+audioop_minmax(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0;
}
static PyObject *
-audioop_avg(self, args)
- PyObject *self;
- PyObject *args;
+audioop_avg(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0;
}
static PyObject *
-audioop_rms(self, args)
- PyObject *self;
- PyObject *args;
+audioop_rms(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0;
** is completely recalculated each step.
*/
static PyObject *
-audioop_findfit(self, args)
- PyObject *self;
- PyObject *args;
+audioop_findfit(PyObject *self, PyObject *args)
{
short *cp1, *cp2;
int len1, len2;
** See the comment for findfit for details.
*/
static PyObject *
-audioop_findfactor(self, args)
- PyObject *self;
- PyObject *args;
+audioop_findfactor(PyObject *self, PyObject *args)
{
short *cp1, *cp2;
int len1, len2;
** that contains the most energy.
*/
static PyObject *
-audioop_findmax(self, args)
- PyObject *self;
- PyObject *args;
+audioop_findmax(PyObject *self, PyObject *args)
{
short *cp1;
int len1, len2;
}
static PyObject *
-audioop_avgpp(self, args)
- PyObject *self;
- PyObject *args;
+audioop_avgpp(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0, prevval = 0, prevextremevalid = 0,
}
static PyObject *
-audioop_maxpp(self, args)
- PyObject *self;
- PyObject *args;
+audioop_maxpp(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0, prevval = 0, prevextremevalid = 0,
}
static PyObject *
-audioop_cross(self, args)
- PyObject *self;
- PyObject *args;
+audioop_cross(PyObject *self, PyObject *args)
{
signed char *cp;
int len, size, val = 0;
}
static PyObject *
-audioop_mul(self, args)
- PyObject *self;
- PyObject *args;
+audioop_mul(PyObject *self, PyObject *args)
{
signed char *cp, *ncp;
int len, size, val = 0;
}
static PyObject *
-audioop_tomono(self, args)
- PyObject *self;
- PyObject *args;
+audioop_tomono(PyObject *self, PyObject *args)
{
signed char *cp, *ncp;
int len, size, val1 = 0, val2 = 0;
}
static PyObject *
-audioop_tostereo(self, args)
- PyObject *self;
- PyObject *args;
+audioop_tostereo(PyObject *self, PyObject *args)
{
signed char *cp, *ncp;
int len, size, val1, val2, val = 0;
}
static PyObject *
-audioop_add(self, args)
- PyObject *self;
- PyObject *args;
+audioop_add(PyObject *self, PyObject *args)
{
signed char *cp1, *cp2, *ncp;
int len1, len2, size, val1 = 0, val2 = 0, maxval, newval;
}
static PyObject *
-audioop_bias(self, args)
- PyObject *self;
- PyObject *args;
+audioop_bias(PyObject *self, PyObject *args)
{
signed char *cp, *ncp;
int len, size, val = 0;
}
static PyObject *
-audioop_reverse(self, args)
- PyObject *self;
- PyObject *args;
+audioop_reverse(PyObject *self, PyObject *args)
{
signed char *cp;
unsigned char *ncp;
}
static PyObject *
-audioop_lin2lin(self, args)
- PyObject *self;
- PyObject *args;
+audioop_lin2lin(PyObject *self, PyObject *args)
{
signed char *cp;
unsigned char *ncp;
}
static PyObject *
-audioop_ratecv(self, args)
- PyObject *self;
- PyObject *args;
+audioop_ratecv(PyObject *self, PyObject *args)
{
char *cp, *ncp;
int len, size, nchannels, inrate, outrate, weightA, weightB;
}
static PyObject *
-audioop_lin2ulaw(self, args)
- PyObject *self;
- PyObject *args;
+audioop_lin2ulaw(PyObject *self, PyObject *args)
{
signed char *cp;
unsigned char *ncp;
}
static PyObject *
-audioop_ulaw2lin(self, args)
- PyObject *self;
- PyObject *args;
+audioop_ulaw2lin(PyObject *self, PyObject *args)
{
unsigned char *cp;
unsigned char cval;
}
static PyObject *
-audioop_lin2adpcm(self, args)
- PyObject *self;
- PyObject *args;
+audioop_lin2adpcm(PyObject *self, PyObject *args)
{
signed char *cp;
signed char *ncp;
}
static PyObject *
-audioop_adpcm2lin(self, args)
- PyObject *self;
- PyObject *args;
+audioop_adpcm2lin(PyObject *self, PyObject *args)
{
signed char *cp;
signed char *ncp;
/* fcntl(fd, opt, [arg]) */
static PyObject *
-fcntl_fcntl(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+fcntl_fcntl(PyObject *self, PyObject *args)
{
int fd;
int code;
/* ioctl(fd, opt, [arg]) */
static PyObject *
-fcntl_ioctl(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+fcntl_ioctl(PyObject *self, PyObject *args)
{
int fd;
int code;
/* flock(fd, operation) */
static PyObject *
-fcntl_flock(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+fcntl_flock(PyObject *self, PyObject *args)
{
int fd;
int code;
/* lockf(fd, operation) */
static PyObject *
-fcntl_lockf(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+fcntl_lockf(PyObject *self, PyObject *args)
{
int fd, code, ret, whence = 0;
PyObject *lenobj = NULL, *startobj = NULL;
/* Module initialisation */
static int
-ins(d, symbol, value)
- PyObject* d;
- char* symbol;
- long value;
+ins(PyObject* d, char* symbol, long value)
{
PyObject* v = PyInt_FromLong(value);
if (!v || PyDict_SetItemString(d, symbol, v) < 0)
}
static int
-all_ins(d)
- PyObject* d;
+all_ins(PyObject* d)
{
if (ins(d, "LOCK_SH", (long)LOCK_SH)) return -1;
if (ins(d, "LOCK_EX", (long)LOCK_EX)) return -1;
;
static PyObject *
-Py_collect(self, args)
- PyObject *self;
- PyObject *args;
+Py_collect(PyObject *self, PyObject *args)
{
long n;
;
static PyObject *
-Py_set_debug(self, args)
- PyObject *self;
- PyObject *args;
+Py_set_debug(PyObject *self, PyObject *args)
{
if (!PyArg_ParseTuple(args, "l", &debug))
return NULL;
;
static PyObject *
-Py_get_debug(self, args)
- PyObject *self;
- PyObject *args;
+Py_get_debug(PyObject *self, PyObject *args)
{
if(!PyArg_ParseTuple(args, "")) /* no args */
return NULL;
;
static PyObject *
-Py_set_thresh(self, args)
- PyObject *self;
- PyObject *args;
+Py_set_thresh(PyObject *self, PyObject *args)
{
if (!PyArg_ParseTuple(args, "i|ii", &threshold0,
&threshold1, &threshold2))
;
static PyObject *
-Py_get_thresh(self, args)
- PyObject *self;
- PyObject *args;
+Py_get_thresh(PyObject *self, PyObject *args)
{
if(!PyArg_ParseTuple(args, "")) /* no args */
return NULL;