From ffe9490d7902c7f91775df2e3fa128b2d2d62f30 Mon Sep 17 00:00:00 2001 From: Sjoerd Mullender Date: Fri, 28 Jan 1994 09:56:05 +0000 Subject: aifc.py: framerate should be an int. sunau.py: should convert number of frames correctly to number of bytes when reading. --- Lib/aifc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/aifc.py') diff --git a/Lib/aifc.py b/Lib/aifc.py index 11dcfe564d..653dac9226 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -515,7 +515,7 @@ class Aifc_read: self._nchannels = _read_short(chunk) self._nframes = _read_long(chunk) self._sampwidth = (_read_short(chunk) + 7) / 8 - self._framerate = _read_float(chunk) + self._framerate = int(_read_float(chunk)) self._framesize = self._nchannels * self._sampwidth if self._aifc: #DEBUG: SGI's soundeditor produces a bad size :-( -- cgit v1.2.1