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

Method setnchannels

Lib/wave.py:482–487  ·  view source on GitHub ↗
(self, nchannels)

Source from the content-addressed store, hash-verified

480 # User visible methods.
481 #
482 def setnchannels(self, nchannels):
483 if self._datawritten:
484 raise Error('cannot change parameters after starting to write')
485 if nchannels < 1:
486 raise Error('bad # of channels')
487 self._nchannels = nchannels
488
489 def getnchannels(self):
490 if not self._nchannels:

Callers 5

setparamsMethod · 0.95
create_fileMethod · 0.80

Calls 1

ErrorClass · 0.70