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

Method setsampwidth

tools/python-3.11.9-amd64/Lib/aifc.py:646–651  ·  view source on GitHub ↗
(self, sampwidth)

Source from the content-addressed store, hash-verified

644 return self._nchannels
645
646 def setsampwidth(self, sampwidth):
647 if self._nframeswritten:
648 raise Error('cannot change parameters after starting to write')
649 if sampwidth < 1 or sampwidth > 4:
650 raise Error('bad sample width')
651 self._sampwidth = sampwidth
652
653 def getsampwidth(self):
654 if not self._sampwidth:

Callers 1

setparamsMethod · 0.95

Calls 1

ErrorClass · 0.70

Tested by

no test coverage detected