@@ -93,8 +93,7 @@ class Error(Exception):
9393_array_fmts = None , 'b' , 'h' , None , 'i'
9494
9595_wave_params = namedtuple ('_wave_params' ,
96- 'nchannels sampwidth framerate nframes comptype compname format' ,
97- defaults = (WAVE_FORMAT_PCM ,))
96+ 'nchannels sampwidth framerate nframes comptype compname' )
9897
9998
10099def _byteswap (data , width ):
@@ -350,8 +349,7 @@ def getcompname(self):
350349 def getparams (self ):
351350 return _wave_params (self .getnchannels (), self .getsampwidth (),
352351 self .getframerate (), self .getnframes (),
353- self .getcomptype (), self .getcompname (),
354- self .getformat ())
352+ self .getcomptype (), self .getcompname ())
355353
356354 def setpos (self , pos ):
357355 if pos < 0 or pos > self ._nframes :
@@ -572,7 +570,7 @@ def getparams(self):
572570 if not self ._nchannels or not self ._sampwidth or not self ._framerate :
573571 raise Error ('not all parameters set' )
574572 return _wave_params (self ._nchannels , self ._sampwidth , self ._framerate ,
575- self ._nframes , self ._comptype , self ._compname , self . _format )
573+ self ._nframes , self ._comptype , self ._compname )
576574
577575 def tell (self ):
578576 return self ._nframeswritten
0 commit comments