27 #ifndef ASYNC_AUDIO_ENCODER_INCLUDED 28 #define ASYNC_AUDIO_ENCODER_INCLUDED 37 #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 void setOption(const std::string &name, const std::string &value)
Set an option for the encoder.
~AudioEncoder(void)
Destructor.
virtual const char * name(void) const =0
Get the name of the codec.
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)
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.