diff options
author | Guido van Rossum <guido@python.org> | 1999-02-05 19:59:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-05 19:59:27 (GMT) |
commit | 5ebeea0467c27eadf3072b7fcfde1908669e115f (patch) | |
tree | ff9c26c2a24caf2d9de37c2143a4ca9066b7bd9d /Lib | |
parent | 2ff880e2cf0ee1d1a4f24050aec227c59dc6f33b (diff) | |
download | cpython-5ebeea0467c27eadf3072b7fcfde1908669e115f.zip cpython-5ebeea0467c27eadf3072b7fcfde1908669e115f.tar.gz cpython-5ebeea0467c27eadf3072b7fcfde1908669e115f.tar.bz2 |
Shouldn't be treating linear-8 as u-law!
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/sunau.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sunau.py b/Lib/sunau.py index 02c13f55..9fee78c 100644 --- a/Lib/sunau.py +++ b/Lib/sunau.py @@ -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: |