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

Method setparams

tools/python-3.11.9-amd64/Lib/wave.py:516–524  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

514 return self._compname
515
516 def setparams(self, params):
517 nchannels, sampwidth, framerate, nframes, comptype, compname = params
518 if self._datawritten:
519 raise Error('cannot change parameters after starting to write')
520 self.setnchannels(nchannels)
521 self.setsampwidth(sampwidth)
522 self.setframerate(framerate)
523 self.setnframes(nframes)
524 self.setcomptype(comptype, compname)
525
526 def getparams(self):
527 if not self._nchannels or not self._sampwidth or not self._framerate:

Callers

nothing calls this directly

Calls 6

setnchannelsMethod · 0.95
setsampwidthMethod · 0.95
setframerateMethod · 0.95
setnframesMethod · 0.95
setcomptypeMethod · 0.95
ErrorClass · 0.70

Tested by

no test coverage detected