Base class for an audio decoder.
More...
#include <AsyncAudioDecoder.h>
Base class for an audio decoder.
- Author
- Tobias Blomberg / SM0SVX
- Date
- 2008-10-06
This is the base class for an audio decoder.
Definition at line 133 of file AsyncAudioDecoder.h.
◆ AudioDecoder()
Async::AudioDecoder::AudioDecoder |
( |
void |
| ) |
|
|
inline |
◆ ~AudioDecoder()
virtual Async::AudioDecoder::~AudioDecoder |
( |
void |
| ) |
|
|
inlinevirtual |
◆ allSamplesFlushed()
virtual void Async::AudioDecoder::allSamplesFlushed |
( |
void |
| ) |
|
|
inlineprotectedvirtual |
The registered sink has flushed all samples.
This function will be called when all samples have been flushed in the registered sink. This function is normally only called from a connected sink object.
Reimplemented from Async::AudioSource.
Definition at line 247 of file AsyncAudioDecoder.h.
◆ create()
static AudioDecoder* Async::AudioDecoder::create |
( |
const std::string & |
name | ) |
|
|
static |
Create a new decoder of the specified type.
- Parameters
-
name | The name of the decoder to create |
◆ flushEncodedSamples()
virtual void Async::AudioDecoder::flushEncodedSamples |
( |
void |
| ) |
|
|
inlinevirtual |
Call this function when all encoded samples have been received.
Definition at line 222 of file AsyncAudioDecoder.h.
◆ isAvailable()
static bool Async::AudioDecoder::isAvailable |
( |
const std::string & |
name | ) |
|
|
static |
Check if a specific decoder is available.
- Parameters
-
name | The name of the decoder to look for |
◆ name()
virtual const char* Async::AudioDecoder::name |
( |
void |
| ) |
const |
|
pure virtual |
Get the name of the codec.
- Returns
- Return the name of the codec
◆ printCodecParams()
virtual void Async::AudioDecoder::printCodecParams |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ resumeOutput()
virtual void Async::AudioDecoder::resumeOutput |
( |
void |
| ) |
|
|
inlinevirtual |
Resume audio output to the sink.
This function will be called when the registered audio sink is ready to accept more samples. This function is normally only called from a connected sink object.
Reimplemented from Async::AudioSource.
Definition at line 231 of file AsyncAudioDecoder.h.
◆ setOption()
virtual void Async::AudioDecoder::setOption |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
inlinevirtual |
Set an option for the decoder.
- Parameters
-
name | The name of the option |
value | The value of the option |
Definition at line 205 of file AsyncAudioDecoder.h.
◆ writeEncodedSamples()
virtual void Async::AudioDecoder::writeEncodedSamples |
( |
void * |
buf, |
|
|
int |
size |
|
) |
| |
|
pure virtual |
Write encoded samples into the decoder.
- Parameters
-
buf | Buffer containing encoded samples |
size | The size of the buffer |
◆ allEncodedSamplesFlushed
sigc::signal<void> Async::AudioDecoder::allEncodedSamplesFlushed |
This signal is emitted when all encoded samples have been flushed.
Definition at line 236 of file AsyncAudioDecoder.h.
The documentation for this class was generated from the following file: