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

_ClassType Wave_read

Variables used in this class:

These variables are available to the user though appropriate
methods of this class:
_file -- the open file with methods read(), close(), and seek()
          set through the __init__() method
_nchannels -- the number of audio channels
          available through the getnchannels() method
_nframes -- the number of audio frames
          available through the getnframes() method
_sampwidth -- the number of bytes per audio sample
          available through the getsampwidth() method
_framerate -- the sampling frequency
          available through the getframerate() method
_comptype -- the AIFF-C compression type ('NONE' if AIFF)
          available through the getcomptype() method
_compname -- the human-readable AIFF-C compression type
          available through the getcomptype() method
_soundpos -- the position in the audio stream
          available through the tell() method, set through the
          setpos() method

These variables are used internally only:
_fmt_chunk_read -- 1 iff the FMT chunk has been read
_data_seek_needed -- 1 iff positioned correctly in audio
          file for readframes()
_data_chunk -- instantiation of a chunk class for the DATA chunk
_framesize -- size of one frame in the file

Instance Methods [hide private]
 
initfp(self, file)
 
__init__(self, f)
 
__del__(self)
 
getfp(self)
 
rewind(self)
 
close(self)
 
tell(self)
 
getnchannels(self)
 
getnframes(self)
 
getsampwidth(self)
 
getframerate(self)
 
getcomptype(self)
 
getcompname(self)
 
getparams(self)
 
getmarkers(self)
 
getmark(self, id)
 
setpos(self, pos)
 
readframes(self, nframes)
 
_read_fmt_chunk(self, chunk)