Shouldn't be treating linear-8 as u-law!

This commit is contained in:
Guido van Rossum 1999-02-05 19:59:27 +00:00
parent 2ff880e2cf
commit 5ebeea0467
1 changed files with 2 additions and 1 deletions

View File

@ -180,10 +180,11 @@ class Au_read:
if self._encoding not in _simple_encodings:
raise Error, 'encoding not (yet) supported'
if self._encoding in (AUDIO_FILE_ENCODING_MULAW_8,
AUDIO_FILE_ENCODING_LINEAR_8,
AUDIO_FILE_ENCODING_ALAW_8):
self._sampwidth = 2
self._framesize = 1
elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_8:
self._framesize = self._sampwidth = 1
elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_16:
self._framesize = self._sampwidth = 2
elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_24: