summaryrefslogtreecommitdiffstats
path: root/Lib/sunau.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-02-05 19:59:27 (GMT)
committerGuido van Rossum <guido@python.org>1999-02-05 19:59:27 (GMT)
commit5ebeea0467c27eadf3072b7fcfde1908669e115f (patch)
treeff9c26c2a24caf2d9de37c2143a4ca9066b7bd9d /Lib/sunau.py
parent2ff880e2cf0ee1d1a4f24050aec227c59dc6f33b (diff)
downloadcpython-5ebeea0467c27eadf3072b7fcfde1908669e115f.zip
cpython-5ebeea0467c27eadf3072b7fcfde1908669e115f.tar.gz
cpython-5ebeea0467c27eadf3072b7fcfde1908669e115f.tar.bz2
Shouldn't be treating linear-8 as u-law!
Diffstat (limited to 'Lib/sunau.py')
-rw-r--r--Lib/sunau.py3
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: