(self)
| 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': |