summaryrefslogtreecommitdiff
path: root/Lib/sunau.py
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1994-01-28 09:56:05 +0000
committerSjoerd Mullender <sjoerd@acm.org>1994-01-28 09:56:05 +0000
commitfdeb791c74094e6eac75ad45fb1b43eb922eb25b (patch)
tree7403d3af4cceaee5381b41f14b7d53edefd16c41 /Lib/sunau.py
parent3664ca975216fe93a416a8a96547fc2feaf99bf4 (diff)
downloadcpython-fdeb791c74094e6eac75ad45fb1b43eb922eb25b.tar.gz
aifc.py: framerate should be an int.
sunau.py: should convert number of frames correctly to number of bytes when reading.
Diffstat (limited to 'Lib/sunau.py')
-rw-r--r--Lib/sunau.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sunau.py b/Lib/sunau.py
index 7ce74b5c26..17fa60d430 100644
--- a/Lib/sunau.py
+++ b/Lib/sunau.py
@@ -254,7 +254,7 @@ class Au_read:
if nframes == AUDIO_UNKNOWN_SIZE:
data = self._file.read()
else:
- data = self._file.read(nframes * self._sampwidth * self._nchannels)
+ data = self._file.read(nframes * self._framesize * self._nchannels)
if self._encoding == AUDIO_FILE_ENCODING_MULAW_8:
import audioop
data = audioop.ulaw2lin(data, self._sampwidth)