Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff880e commit 5ebeea0Copy full SHA for 5ebeea0
1 file changed
Lib/sunau.py
@@ -180,10 +180,11 @@ def initfp(self, file):
180
if self._encoding not in _simple_encodings:
181
raise Error, 'encoding not (yet) supported'
182
if self._encoding in (AUDIO_FILE_ENCODING_MULAW_8,
183
- AUDIO_FILE_ENCODING_LINEAR_8,
184
AUDIO_FILE_ENCODING_ALAW_8):
185
self._sampwidth = 2
186
self._framesize = 1
+ elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_8:
187
+ self._framesize = self._sampwidth = 1
188
elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_16:
189
self._framesize = self._sampwidth = 2
190
elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_24:
0 commit comments