Wave_write Objects
------------------
Wave_write objects, as returned by `open()', have the following methods:
`close()'
Make sure NFRAMES is correct, and close the file. This method is
called upon deletion.
`setnchannels(n)'
Set the number of channels.
`setsampwidth(n)'
Set the sample width to N bytes.
`setframerate(n)'
Set the frame rate to N.
`setnframes(n)'
Set the number of frames to N. This will be changed later if more
frames are written.
`setcomptype(type, name)'
Set the compression type and description.
`setparams(tuple)'
The TUPLE should be `(NCHANNELS, SAMPWIDTH, FRAMERATE, NFRAMES,
COMPTYPE, COMPNAME)', with values valid for the `set*()' methods.
Sets all parameters.
`tell()'
Return current position in the file, with the same disclaimer for
the `Wave_read.tell()' and `Wave_read.setpos()' methods.
`writeframesraw(data)'
Write audio frames, without correcting NFRAMES.
`writeframes(data)'
Write audio frames and make sure NFRAMES is correct.
Note that it is invalid to set any parameters after calling
`writeframes()' or `writeframesraw()', and any attempt to do so will
raise `wave.Error'.