mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Shouldn't be treating linear-8 as u-law!
This commit is contained in:
parent
2ff880e2cf
commit
5ebeea0467
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue