Lines Matching refs:nchannels
538 _ssize(oss_audio_t *self, int *nchannels, int *ssize) in _ssize() argument
564 if (ioctl(self->fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize()
576 int nchannels=0, ssize=0; in oss_bufsize() local
578 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_bufsize()
586 return PyInt_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize()
595 int nchannels=0, ssize=0; in oss_obufcount() local
597 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obufcount()
606 (ssize * nchannels)); in oss_obufcount()
615 int nchannels=0, ssize=0; in oss_obuffree() local
617 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obuffree()
625 return PyInt_FromLong(ai.bytes / (ssize * nchannels)); in oss_obuffree()