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

Method setsampwidth

tools/python-3.11.9-amd64/Lib/sunau.py:359–364  ·  view source on GitHub ↗
(self, sampwidth)

Source from the content-addressed store, hash-verified

357 return self._nchannels
358
359 def setsampwidth(self, sampwidth):
360 if self._nframeswritten:
361 raise Error('cannot change parameters after starting to write')
362 if sampwidth not in (1, 2, 3, 4):
363 raise Error('bad sample width')
364 self._sampwidth = sampwidth
365
366 def getsampwidth(self):
367 if not self._framerate:

Callers 1

setparamsMethod · 0.95

Calls 1

ErrorClass · 0.70

Tested by

no test coverage detected