MCPcopy Index your code
hub / github.com/RustPython/RustPython / setsampwidth

Method setsampwidth

Lib/wave.py:494–499  ·  view source on GitHub ↗
(self, sampwidth)

Source from the content-addressed store, hash-verified

492 return self._nchannels
493
494 def setsampwidth(self, sampwidth):
495 if self._datawritten:
496 raise Error('cannot change parameters after starting to write')
497 if sampwidth < 1 or sampwidth > 4:
498 raise Error('bad sample width')
499 self._sampwidth = sampwidth
500
501 def getsampwidth(self):
502 if not self._sampwidth:

Callers 5

setparamsMethod · 0.95
create_fileMethod · 0.80

Calls 1

ErrorClass · 0.70