Lines Matching refs:nchannels
613 _ssize(oss_audio_t *self, int *nchannels, int *ssize) in _ssize() argument
639 if (ioctl(self->fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize()
651 int nchannels=0, ssize=0; in oss_bufsize() local
656 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_bufsize()
664 return PyLong_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize()
673 int nchannels=0, ssize=0; in oss_obufcount() local
678 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obufcount()
687 (ssize * nchannels)); in oss_obufcount()
696 int nchannels=0, ssize=0; in oss_obuffree() local
701 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obuffree()
709 return PyLong_FromLong(ai.bytes / (ssize * nchannels)); in oss_obuffree()