RTP Audio System
2.0.0
|
Multi Audio Reader. More...
#include <multiaudioreader.h>
Classes | |
struct | ReaderEntry |
Public Member Functions | |
MultiAudioReader (const char *name=NULL, const cardinal level=0) | |
~MultiAudioReader () | |
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 (card64 position) |
cardinal | getNextBlock (void *buffer, const cardinal blockSize) |
AudioReaderInterface * | getAudioReader (const char *name, const cardinal level) |
Private Attributes | |
AudioReaderInterface * | Reader |
std::multimap< const card64, ReaderEntry > | ReaderSet |
std::multimap< const card64, ReaderEntry >::iterator | ReaderIterator |
MediaError | Error |
card64 | Position |
card64 | MaxPosition |
cardinal | Level |
Multi Audio Reader.
This class is a reader for multiple audio files from a list.
MultiAudioReader::MultiAudioReader | ( | const char * | name = NULL , |
const cardinal | level = 0 |
||
) |
Constructor.
name | Name of AudioList file or NULL. |
level | Recursion level (normally 0). |
Destructor.
void MultiAudioReader::closeMedia | ( | ) | [virtual] |
closeMedia() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
AudioReaderInterface * MultiAudioReader::getAudioReader | ( | const char * | name, |
const cardinal | level | ||
) |
Get AudioReaderInterface for loading a given file.
name | File name. |
level | Recursion level (normally 0). |
MediaError MultiAudioReader::getErrorCode | ( | ) | const [virtual] |
getErrorCode() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
card64 MultiAudioReader::getMaxPosition | ( | ) | const [virtual] |
getMaxPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
void MultiAudioReader::getMediaInfo | ( | MediaInfo & | mediaInfo | ) | const [virtual] |
getMediaInfo() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
cardinal MultiAudioReader::getNextBlock | ( | void * | buffer, |
const cardinal | blockSize | ||
) | [virtual] |
getNextBlock() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
card64 MultiAudioReader::getPosition | ( | ) | const [virtual] |
getPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
bool MultiAudioReader::openMedia | ( | const char * | name | ) | [virtual] |
openMedia() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
bool MultiAudioReader::ready | ( | ) | const [virtual] |
ready() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
void MultiAudioReader::setPosition | ( | card64 | position | ) | [virtual] |
setPosition() implementation of AudioReaderInterface.
Implements AudioReaderInterface.
MediaError MultiAudioReader::Error [private] |
cardinal MultiAudioReader::Level [private] |
card64 MultiAudioReader::MaxPosition [private] |
card64 MultiAudioReader::Position [private] |
AudioReaderInterface* MultiAudioReader::Reader [private] |
std::multimap<const card64, ReaderEntry>::iterator MultiAudioReader::ReaderIterator [private] |
std::multimap<const card64, ReaderEntry> MultiAudioReader::ReaderSet [private] |