Skip to content

Commit eeee8cd

Browse files
committed
Fix for sample format
1 parent 1597e4f commit eeee8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/wave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,11 @@ def setparams(self, params):
573573
else:
574574
nchannels, sampwidth, framerate, nframes, comptype, compname, format = params
575575
self.setnchannels(nchannels)
576+
self.setformat(format)
576577
self.setsampwidth(sampwidth)
577578
self.setframerate(framerate)
578579
self.setnframes(nframes)
579580
self.setcomptype(comptype, compname)
580-
self.setformat(format)
581581

582582
def getparams(self):
583583
if not self._nchannels or not self._sampwidth or not self._framerate:

0 commit comments

Comments
 (0)