27 #ifndef ASYNC_AUDIO_ENCODER_INCLUDED 28 #define ASYNC_AUDIO_ENCODER_INCLUDED 37 #include <sigc++/sigc++.h> 142 virtual const char *
name(
void)
const = 0;
149 virtual void setOption(
const std::string &
name,
const std::string &value) {}
virtual void setOption(const std::string &name, const std::string &value)
Set an option for the encoder.
virtual const char * name(void) const =0
Get the name of the codec.
~AudioEncoder(void)
Destructor.
sigc::signal< void > flushEncodedSamples
This signal is emitted when the source calls flushSamples.
This file contains the base class for an audio sink.
void allEncodedSamplesFlushed(void)
Call this function when all encoded samples have been flushed.
static AudioEncoder * create(const std::string &name)
Create a new encoder of the specified type.
virtual void flushSamples(void)
Tell the sink to flush the previously written samples.
The base class for an audio sink.
Namespace for the asynchronous programming classes.
Base class for an audio encoder.
virtual void printCodecParams(void)
Print codec parameter settings.
sigc::signal< void, const void *, int > writeEncodedSamples
A signal emitted when encoded samples are available.
AudioEncoder(void)
Default constuctor.
void sourceAllSamplesFlushed(void)
Tell the source that all samples have been flushed.
static bool isAvailable(const std::string &name)
Check if a specific encoder is available.