Go to the documentation of this file.
27 #ifndef ASYNC_AUDIO_DECODER_INCLUDED
28 #define ASYNC_AUDIO_DECODER_INCLUDED
38 #include <sigc++/sigc++.h>
113 class AudioDecoder :
public AudioSource,
public sigc::trackable
142 virtual const char *
name(
void)
const = 0;
149 virtual void setOption(
const std::string &
name,
const std::string &value) {}
sigc::signal< void > allEncodedSamplesFlushed
This signal is emitted when all encoded samples have been flushed.
virtual void setOption(const std::string &name, const std::string &value)
Set an option for the decoder.
static bool isAvailable(const std::string &name)
Check if a specific decoder is available.
virtual const char * name(void) const =0
Get the name of the codec.
virtual void allSamplesFlushed(void)
The registered sink has flushed all samples.
virtual void flushEncodedSamples(void)
Call this function when all encoded samples have been received.
void sinkFlushSamples(void)
virtual void writeEncodedSamples(void *buf, int size)=0
Write encoded samples into the decoder.
static AudioDecoder * create(const std::string &name)
Create a new decoder of the specified type.
Base class for an audio decoder.
AudioDecoder(void)
Default constuctor.
Namespace for the asynchronous programming classes.
virtual void printCodecParams(void) const
Print codec parameter settings.
virtual ~AudioDecoder(void)
Destructor.
This file contains the base class for an audio source.
virtual void resumeOutput(void)
Resume audio output to the sink.