|
UtiLite
0.3.1
A lite utilities library
|
#include <UWav.h>
Classes | |
| struct | ChunkHeader |
| struct | DataChunk |
| struct | FmtChunk |
| struct | WavHeader |
Public Member Functions | |
| int | init (const char *fileName) |
| long | readData (unsigned char data[], long offset, long dataLength) |
| long | readNextData (unsigned char data[], long dataLength) |
| long | readNextSamples (short samples[], long numSamples) |
This class represents a WAV file. When initiated, it reads the file headers and keep informations in his attributes accessibles with the getters. The data aren't read at the initialization.
| int UWav::init | ( | const char * | fileName | ) |
It reads the file headers to fill wav structures.
| fileName | the file name |
| long UWav::readData | ( | unsigned char | data[], |
| long | offset, | ||
| long | dataLength | ||
| ) |
Read the data from the offset.
| data | buffer for the data read |
| offset | offset where the data begin to be read. |
| dataLength | length of the data buffer |
| long UWav::readNextData | ( | unsigned char | data[], |
| long | dataLength | ||
| ) |
Read the next data depending on the last call. First call to this method will read from the beginning of the data chunk.
| data | buffer for the data read |
| dataLength | length of the data buffer |
| long UWav::readNextSamples | ( | short | samples[], |
| long | numSamples | ||
| ) |
Read the next samples (16 bits per samples).
| samples | buffer for the samples read |
| numSamples | length of the samples buffer |
1.7.6.1