Lines Matching refs:nchannels
242 int rate, ssize, nchannels, n, fmt, emulate=0; in lad_setparameters() local
245 &rate, &ssize, &nchannels, &fmt, &emulate)) in lad_setparameters()
258 if (nchannels != 1 && nchannels != 2) { in lad_setparameters()
260 nchannels); in lad_setparameters()
291 if (ioctl(self->x_fd, SNDCTL_DSP_CHANNELS, &nchannels) == -1) { in lad_setparameters()
305 _ssize(lad_t *self, int *nchannels, int *ssize) in _ssize() argument
331 if (ioctl(self->x_fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize()
343 int nchannels=0, ssize=0; in lad_bufsize() local
345 if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) { in lad_bufsize()
353 return PyInt_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in lad_bufsize()
362 int nchannels=0, ssize=0; in lad_obufcount() local
364 if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) { in lad_obufcount()
373 (ssize * nchannels)); in lad_obufcount()
382 int nchannels=0, ssize=0; in lad_obuffree() local
384 if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) { in lad_obuffree()
392 return PyInt_FromLong(ai.bytes / (ssize * nchannels)); in lad_obuffree()