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