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