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

Method _init_compression

tools/python-3.11.9-amd64/Lib/aifc.py:832–840  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

830 self._write_header(datasize)
831
832 def _init_compression(self):
833 if self._comptype == b'G722':
834 self._convert = self._lin2adpcm
835 elif self._comptype in (b'ulaw', b'ULAW'):
836 self._convert = self._lin2ulaw
837 elif self._comptype in (b'alaw', b'ALAW'):
838 self._convert = self._lin2alaw
839 elif self._comptype in (b'sowt', b'SOWT'):
840 self._convert = self._lin2sowt
841
842 def _write_header(self, initlength):
843 if self._aifc and self._comptype != b'NONE':

Callers 1

_write_headerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected