Lines Matching refs:devicename
51 char *devicename; /* name of the device file */ member
80 char *devicename = NULL; in newossobject() local
88 if (!PyArg_ParseTuple(arg, "s|s:open", &devicename, &mode)) in newossobject()
91 mode = devicename; in newossobject()
92 devicename = NULL; in newossobject()
108 if (devicename == NULL) { /* called with one arg */ in newossobject()
109 devicename = getenv("AUDIODEV"); in newossobject()
110 if (devicename == NULL) /* $AUDIODEV not set */ in newossobject()
111 devicename = "/dev/dsp"; in newossobject()
118 if ((fd = open(devicename, imode|O_NONBLOCK)) == -1) { in newossobject()
119 PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename); in newossobject()
127 PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename); in newossobject()
133 PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename); in newossobject()
141 self->devicename = devicename; in newossobject()
166 char *devicename = NULL; in newossmixerobject() local
170 if (!PyArg_ParseTuple(arg, "|s", &devicename)) { in newossmixerobject()
174 if (devicename == NULL) { in newossmixerobject()
175 devicename = getenv("MIXERDEV"); in newossmixerobject()
176 if (devicename == NULL) /* MIXERDEV not set */ in newossmixerobject()
177 devicename = "/dev/mixer"; in newossmixerobject()
180 if ((fd = open(devicename, O_RDWR)) == -1) { in newossmixerobject()
181 PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename); in newossmixerobject()
813 rval = PyString_FromString(self->devicename); in oss_getattr()