RTP Audio System
2.0.0
|
Audio Reader Interface. More...
#include <audioreaderinterface.h>
Public Member Functions | |
virtual bool | openMedia (const char *name)=0 |
virtual void | closeMedia ()=0 |
virtual bool | ready () const =0 |
virtual void | getMediaInfo (MediaInfo &mediaInfo) const =0 |
virtual MediaError | getErrorCode () const =0 |
virtual card64 | getPosition () const =0 |
virtual card64 | getMaxPosition () const =0 |
virtual void | setPosition (const card64 position)=0 |
virtual cardinal | getNextBlock (void *buffer, const cardinal blockSize)=0 |
Audio Reader Interface.
This class is the interface for an audio reader.
virtual void AudioReaderInterface::closeMedia | ( | ) | [pure virtual] |
Close media, if opened.
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual MediaError AudioReaderInterface::getErrorCode | ( | ) | const [pure virtual] |
Get error code.
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual card64 AudioReaderInterface::getMaxPosition | ( | ) | const [pure virtual] |
Get maximum position.
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual void AudioReaderInterface::getMediaInfo | ( | MediaInfo & | mediaInfo | ) | const [pure virtual] |
Get MediaInfo.
mediaInfo | Reference to store media info. |
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual cardinal AudioReaderInterface::getNextBlock | ( | void * | buffer, |
const cardinal | blockSize | ||
) | [pure virtual] |
Read next block. In case of an error, getNextBlock() should return 0 and set ready to false.
buffer | Buffer for block to read. |
blockSize | Size of block in bytes. |
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual card64 AudioReaderInterface::getPosition | ( | ) | const [pure virtual] |
Get current position.
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual bool AudioReaderInterface::openMedia | ( | const char * | name | ) | [pure virtual] |
Open media.
name | Name of media, e.g. a file name. |
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual bool AudioReaderInterface::ready | ( | ) | const [pure virtual] |
Check, if AudioReader is ready for reading.
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.
virtual void AudioReaderInterface::setPosition | ( | const card64 | position | ) | [pure virtual] |
Get position.
position | Position in nanoseconds. |
Implemented in MP3AudioReader, MultiAudioReader, and WavAudioReader.