Lines Matching refs:_sampwidth
266 # _sampwidth -- the number of bytes per audio sample
333 cl.BITS_PER_COMPONENT, self._sampwidth * 8,
375 return self._sampwidth
424 self._soundpos = self._soundpos + len(data) // (self._nchannels * self._sampwidth)
454 self._sampwidth = (_read_short(chunk) + 7) // 8
456 self._framesize = self._nchannels * self._sampwidth
546 # _sampwidth -- the number of bytes per audio sample
584 self._sampwidth = 0
628 self._sampwidth = sampwidth
631 if not self._sampwidth:
633 return self._sampwidth
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)
783 if not self._sampwidth:
784 self._sampwidth = 2
785 if self._sampwidth != 2:
788 if not self._sampwidth:
789 self._sampwidth = 2
790 if self._sampwidth != 2:
794 if not self._sampwidth:
823 cl.BITS_PER_COMPONENT, self._sampwidth * 8,
843 self._nframes = initlength // (self._nchannels * self._sampwidth)
844 self._datalength = self._nframes * self._nchannels * self._sampwidth
870 _write_short(self._file, self._sampwidth * 8)