WaveFile represents a WAV-file
WaveFile represents a WAV-file. It implements the interface defined by AudioData.
~WaveFile()
size_t load(size_t samples)
size_t loadSecs(size_t secs)
void seek(int samples, SeekMode mode)
void seekSecs(int secs, SeekMode mode)
void store(ofstream& file)
uint32 type()
uint32 bitsInSample()
uint32 dataLocation()
void open(const string& filename)
void close()
Sample calcSampAmp(Byte* buf)
void calcSampCode(Sample samp, Byte* buf)
buf - array of bytes
uint32 packBytes(Byte* bytes)
bool isRiffHeader(Byte header[4])
bool isWaveHeader(Byte header[4])
bool isFmtHeader(Byte header[4])
bool isDataHeader(Byte header[4])
bool isOrdinaryFormatChunk(Byte header[4])
bool readFormatTag(Byte header[2])
bool readChannelCount(Byte header[2])
bool readSamplingRate(Byte header[4])
bool readBytesPerSecond(Byte header[4])
bool readBytesPerSample(Byte header[2])
bool readBitsPerSample(Byte header[2])
uint32 vSize
uint32 vType
uint32 vBitsInSample
uint32 vDataLocation
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de