Lines Matching defs:channel
798 int channel, volume;
804 if (!PyArg_ParseTuple(args, "i:get", &channel))
807 if (channel < 0 || channel > SOUND_MIXER_NRDEVICES) {
808 PyErr_SetString(OSSAudioError, "Invalid mixer channel specified.");
812 if (ioctl(self->fd, MIXER_READ(channel), &volume) == -1)
821 int channel, volume, leftVol, rightVol;
827 if (!PyArg_ParseTuple(args, "i(ii):set", &channel, &leftVol, &rightVol))
830 if (channel < 0 || channel > SOUND_MIXER_NRDEVICES) {
831 PyErr_SetString(OSSAudioError, "Invalid mixer channel specified.");
842 if (ioctl(self->fd, MIXER_WRITE(channel), &volume) == -1)