Module wave :: Class Wave_write
[hide private]
[frames] | no frames]

_ClassType Wave_write

Variables used in this class:

These variables are user settable through appropriate methods
of this class:
_file -- the open file with methods write(), close(), tell(), seek()
          set through the __init__() method
_comptype -- the AIFF-C compression type ('NONE' in AIFF)
          set through the setcomptype() or setparams() method
_compname -- the human-readable AIFF-C compression type
          set through the setcomptype() or setparams() method
_nchannels -- the number of audio channels
          set through the setnchannels() or setparams() method
_sampwidth -- the number of bytes per audio sample
          set through the setsampwidth() or setparams() method
_framerate -- the sampling frequency
          set through the setframerate() or setparams() method
_nframes -- the number of audio frames written to the header
          set through the setnframes() or setparams() method

These variables are used internally only:
_datalength -- the size of the audio samples written to the header
_nframeswritten -- the number of frames actually written
_datawritten -- the size of the audio samples actually written

Instance Methods [hide private]
 
__init__(self, f)
 
initfp(self, file)
 
__del__(self)
 
setnchannels(self, nchannels)
 
getnchannels(self)
 
setsampwidth(self, sampwidth)
 
getsampwidth(self)
 
setframerate(self, framerate)
 
getframerate(self)
 
setnframes(self, nframes)
 
getnframes(self)
 
setcomptype(self, comptype, compname)
 
getcomptype(self)
 
getcompname(self)
 
setparams(self, (nchannels, sampwidth, framerate, nframes, comptype, compname))
 
getparams(self)
 
setmark(self, id, pos, name)
 
getmark(self, id)
 
getmarkers(self)
 
tell(self)
 
writeframesraw(self, data)
 
writeframes(self, data)
 
close(self)
 
_ensure_header_written(self, datasize)
 
_write_header(self, initlength)
 
_patchheader(self)