MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / setsampwidth

Method setsampwidth

tools/python-3.11.9-amd64/Lib/wave.py:470–475  ·  view source on GitHub ↗
(self, sampwidth)

Source from the content-addressed store, hash-verified

468 return self._nchannels
469
470 def setsampwidth(self, sampwidth):
471 if self._datawritten:
472 raise Error('cannot change parameters after starting to write')
473 if sampwidth < 1 or sampwidth > 4:
474 raise Error('bad sample width')
475 self._sampwidth = sampwidth
476
477 def getsampwidth(self):
478 if not self._sampwidth:

Callers 1

setparamsMethod · 0.95

Calls 1

ErrorClass · 0.70

Tested by

no test coverage detected