Lines Matching refs:_nchannels
262 # _nchannels -- the number of audio channels
335 if self._nchannels == 1:
337 elif self._nchannels == 2:
369 return self._nchannels
424 self._soundpos = self._soundpos + len(data) // (self._nchannels * self._sampwidth)
435 return self._decomp.Decompress(len(data) // self._nchannels,
452 self._nchannels = _read_short(chunk)
456 self._framesize = self._nchannels * self._sampwidth
544 # _nchannels -- the number of audio channels
583 self._nchannels = 0
616 self._nchannels = nchannels
619 if not self._nchannels:
621 return self._nchannels
687 if not self._nchannels or not self._sampwidth or not self._framerate:
689 return self._nchannels, self._sampwidth, self._framerate, \
721 nframes = len(data) // (self._sampwidth * self._nchannels)
792 if not self._nchannels:
827 if self._nchannels == 1:
829 elif self._nchannels == 2:
843 self._nframes = initlength // (self._nchannels * self._sampwidth)
844 self._datalength = self._nframes * self._nchannels * self._sampwidth
867 _write_short(self._file, self._nchannels)