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

Method setnchannels

tools/python-3.11.9-amd64/Lib/sunau.py:347–352  ·  view source on GitHub ↗
(self, nchannels)

Source from the content-addressed store, hash-verified

345 self._comptype = 'ULAW' # default is U-law
346
347 def setnchannels(self, nchannels):
348 if self._nframeswritten:
349 raise Error('cannot change parameters after starting to write')
350 if nchannels not in (1, 2, 4):
351 raise Error('only 1, 2, or 4 channels supported')
352 self._nchannels = nchannels
353
354 def getnchannels(self):
355 if not self._nchannels:

Callers 1

setparamsMethod · 0.95

Calls 1

ErrorClass · 0.70

Tested by

no test coverage detected