diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 1994-01-28 09:56:05 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 1994-01-28 09:56:05 (GMT) |
commit | ffe9490d7902c7f91775df2e3fa128b2d2d62f30 (patch) | |
tree | 4085c44505124a06014cda0363434e32fd0e10e5 /Lib/sunau.py | |
parent | 5125908d2b0f872d363b4164d62180398f76839e (diff) | |
download | cpython-ffe9490d7902c7f91775df2e3fa128b2d2d62f30.zip cpython-ffe9490d7902c7f91775df2e3fa128b2d2d62f30.tar.gz cpython-ffe9490d7902c7f91775df2e3fa128b2d2d62f30.tar.bz2 |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sunau.py b/Lib/sunau.py index 7ce74b5..17fa60d 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) |