summaryrefslogtreecommitdiffstats
path: root/Lib/sunau.py
diff options
context:
space:
mode:
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 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)