aifc.py: framerate should be an int.
sunau.py: should convert number of frames correctly to number of bytes
when reading.
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 @@
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)