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

Method initfp

tools/python-3.11.9-amd64/Lib/sunau.py:334–345  ·  view source on GitHub ↗
(self, file)

Source from the content-addressed store, hash-verified

332 self.close()
333
334 def initfp(self, file):
335 self._file = file
336 self._framerate = 0
337 self._nchannels = 0
338 self._sampwidth = 0
339 self._framesize = 0
340 self._nframes = AUDIO_UNKNOWN_SIZE
341 self._nframeswritten = 0
342 self._datawritten = 0
343 self._datalength = 0
344 self._info = b''
345 self._comptype = 'ULAW' # default is U-law
346
347 def setnchannels(self, nchannels):
348 if self._nframeswritten:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected