Skip to content

Commit ddb4f62

Browse files
committed
SF patch #667548, Add some audio constants by Michael Pruett
Also remove a few unused variables. Built on IRIX 6.5.
1 parent 1ac3e39 commit ddb4f62

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

Modules/almodule.c

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static PyObject *
5959
param2python(int resource, int param, ALvalue value, ALparamInfo *pinfo)
6060
{
6161
ALparamInfo info;
62-
PyObject *v;
6362

6463
if (pinfo == NULL) {
6564
pinfo = &info;
@@ -717,7 +716,6 @@ PyDoc_STRVAR(alp_ReadFrames__doc__,
717716
static PyObject *
718717
alp_ReadFrames(alpobject *self, PyObject *args)
719718
{
720-
void *samples;
721719
int framecount;
722720
PyObject *v;
723721
int size;
@@ -1561,7 +1559,7 @@ static PyObject *
15611559
al_SetParams(PyObject *self, PyObject *args)
15621560
{
15631561
int resource;
1564-
PyObject *pvslist, *item;
1562+
PyObject *pvslist;
15651563
ALpv *pvs;
15661564
ALparamInfo *pinfo;
15671565
int npvs, i;
@@ -2545,6 +2543,12 @@ inital(void)
25452543
goto error;
25462544
Py_DECREF(x);
25472545
#endif
2546+
#ifdef AL_LOCKED
2547+
x = PyInt_FromLong((long) AL_LOCKED);
2548+
if (x == NULL || PyDict_SetItemString(d, "LOCKED", x) < 0)
2549+
goto error;
2550+
Py_DECREF(x);
2551+
#endif
25482552
#ifdef AL_MASTER_CLOCK
25492553
x = PyInt_FromLong((long) AL_MASTER_CLOCK);
25502554
if (x == NULL || PyDict_SetItemString(d, "MASTER_CLOCK", x) < 0)
@@ -2695,12 +2699,24 @@ inital(void)
26952699
goto error;
26962700
Py_DECREF(x);
26972701
#endif
2702+
#ifdef AL_NULL_INTERFACE
2703+
x = PyInt_FromLong((long) AL_NULL_INTERFACE);
2704+
if (x == NULL || PyDict_SetItemString(d, "NULL_INTERFACE", x) < 0)
2705+
goto error;
2706+
Py_DECREF(x);
2707+
#endif
26982708
#ifdef AL_NULL_RESOURCE
26992709
x = PyInt_FromLong((long) AL_NULL_RESOURCE);
27002710
if (x == NULL || PyDict_SetItemString(d, "NULL_RESOURCE", x) < 0)
27012711
goto error;
27022712
Py_DECREF(x);
27032713
#endif
2714+
#ifdef AL_OPTICAL_IF_TYPE
2715+
x = PyInt_FromLong((long) AL_OPTICAL_IF_TYPE);
2716+
if (x == NULL || PyDict_SetItemString(d, "OPTICAL_IF_TYPE", x) < 0)
2717+
goto error;
2718+
Py_DECREF(x);
2719+
#endif
27042720
#ifdef AL_OUTPUT_COUNT
27052721
x = PyInt_FromLong((long) AL_OUTPUT_COUNT);
27062722
if (x == NULL || PyDict_SetItemString(d, "OUTPUT_COUNT", x) < 0)
@@ -3049,6 +3065,12 @@ inital(void)
30493065
goto error;
30503066
Py_DECREF(x);
30513067
#endif
3068+
#ifdef AL_SMPTE272M_IF_TYPE
3069+
x = PyInt_FromLong((long) AL_SMPTE272M_IF_TYPE);
3070+
if (x == NULL || PyDict_SetItemString(d, "SMPTE272M_IF_TYPE", x) < 0)
3071+
goto error;
3072+
Py_DECREF(x);
3073+
#endif
30523074
#ifdef AL_SOURCE
30533075
x = PyInt_FromLong((long) AL_SOURCE);
30543076
if (x == NULL || PyDict_SetItemString(d, "SOURCE", x) < 0)

0 commit comments

Comments
 (0)