|
RTP Audio System
2.0.0
|
Decoder Interface. More...
#include <decoderinterface.h>
Public Member Functions | |
| virtual const card16 | getTypeID () const =0 |
| virtual const char * | getTypeName () const =0 |
| virtual void | activate ()=0 |
| virtual void | deactivate ()=0 |
| virtual void | reset ()=0 |
| virtual bool | checkNextPacket (DecoderPacket *packet)=0 |
| virtual void | handleNextPacket (const DecoderPacket *decoderPacket)=0 |
| virtual void | getMediaInfo (MediaInfo &mediaInfo) const =0 |
| virtual card8 | getErrorCode () const =0 |
| virtual card64 | getPosition () const =0 |
| virtual card64 | getMaxPosition () const =0 |
Decoder Interface.
This class is the interface for a decoder.
| virtual void DecoderInterface::activate | ( | ) | [pure virtual] |
Activate the decoder. Usage example: Start an decoder thread.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual bool DecoderInterface::checkNextPacket | ( | DecoderPacket * | packet | ) | [pure virtual] |
Check next packet. This function has to set valid packet->Layers and packet->Layer value.
| decoderPacket | DecoderPacket structure. |
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual void DecoderInterface::deactivate | ( | ) | [pure virtual] |
Deactivate the decoder. Usage example: Stop an decoder thread.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual card8 DecoderInterface::getErrorCode | ( | ) | const [pure virtual] |
Get error code Usage example: Return error, if reading from file failed.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual card64 DecoderInterface::getMaxPosition | ( | ) | const [pure virtual] |
Get maximum position in nanoseconds.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual void DecoderInterface::getMediaInfo | ( | MediaInfo & | mediaInfo | ) | const [pure virtual] |
Get media info.
| mediaInfo | Reference to store MediaInfo to. |
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual card64 DecoderInterface::getPosition | ( | ) | const [pure virtual] |
Get current position in nanoseconds.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual const card16 DecoderInterface::getTypeID | ( | ) | const [pure virtual] |
Get the decoder's type ID.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual const char* DecoderInterface::getTypeName | ( | ) | const [pure virtual] |
Get the decoder's name.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual void DecoderInterface::handleNextPacket | ( | const DecoderPacket * | decoderPacket | ) | [pure virtual] |
Handle next received packet.
| decoderPacket | DecoderPacket structure. |
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.
| virtual void DecoderInterface::reset | ( | ) | [pure virtual] |
Reset the decoder. Usage example: Reset an decoder thread.
Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.