RTP Audio System
2.0.0
|
WAV Audio Reader. More...
#include <wavaudioreader.h>
Classes | |
struct | RIFF_Chunk |
struct | RIFF_Header |
struct | WAVE_Format |
Public Member Functions | |
WavAudioReader (const char *name=NULL) | |
~WavAudioReader () | |
bool | openMedia (const char *name) |
void | closeMedia () |
bool | ready () const |
void | getMediaInfo (MediaInfo &mediaInfo) const |
MediaError | getErrorCode () const |
card64 | getPosition () const |
card64 | getMaxPosition () const |
void | setPosition (const card64 position) |
cardinal | getNextBlock (void *buffer, const cardinal blockSize) |
Private Member Functions | |
bool | getChunk (RIFF_Chunk &chunk) |
Private Attributes | |
MediaError | Error |
FILE * | InputFD |
WAVE_Format | Format |
card64 | StartPosition |
card64 | EndPosition |
card64 | Position |
card64 | MaxPosition |
WAV Audio Reader.
This class is a reader for WAV audio files.
WavAudioReader::WavAudioReader | ( | const char * | name = NULL | ) |
Constructor.
name | Name of WAV file or NULL. |
Destructor.
void WavAudioReader::closeMedia | ( | ) | [virtual] |
closeMedia() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
bool WavAudioReader::getChunk | ( | RIFF_Chunk & | chunk | ) | [private] |
MediaError WavAudioReader::getErrorCode | ( | ) | const [virtual] |
getErrorCode() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
card64 WavAudioReader::getMaxPosition | ( | ) | const [virtual] |
getMaxPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
void WavAudioReader::getMediaInfo | ( | MediaInfo & | mediaInfo | ) | const [virtual] |
getMediaInfo() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
cardinal WavAudioReader::getNextBlock | ( | void * | buffer, |
const cardinal | blockSize | ||
) | [virtual] |
getNextBlock() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
card64 WavAudioReader::getPosition | ( | ) | const [virtual] |
getPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
bool WavAudioReader::openMedia | ( | const char * | name | ) | [virtual] |
openMedia() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
bool WavAudioReader::ready | ( | ) | const [virtual] |
ready() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
void WavAudioReader::setPosition | ( | const card64 | position | ) | [virtual] |
setPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
card64 WavAudioReader::EndPosition [private] |
MediaError WavAudioReader::Error [private] |
WAVE_Format WavAudioReader::Format [private] |
FILE* WavAudioReader::InputFD [private] |
card64 WavAudioReader::MaxPosition [private] |
card64 WavAudioReader::Position [private] |
card64 WavAudioReader::StartPosition [private] |