28#ifndef ASYNC_AUDIO_SOURCE_INCLUDED
29#define ASYNC_AUDIO_SOURCE_INCLUDED
121 : m_sink(0), m_sink_managed(
false), m_handler(0),
122 m_auto_unreg_source(
false), is_flushing(
false)
265 bool m_auto_unreg_source;
The base class for an audio sink.
The base class for an audio source.
AudioSource * handler(void) const
bool setHandler(AudioSource *handler)
Setup another source to handle the outgoing audio.
bool registerSink(AudioSink *sink, bool managed=false)
Register an audio sink to provide samples to.
bool isRegistered(void) const
Check if an audio sink has been registered.
AudioSink * sink(void) const
Get the registered audio sink.
virtual void allSamplesFlushed(void)
The registered sink has flushed all samples.
void sinkFlushSamples(void)
bool sinkManaged(void) const
Check if the sink is managed or not.
virtual ~AudioSource(void)
Destructor.
void clearHandler(void)
Clear a handler that was previously setup with setHandler.
void handleAllSamplesFlushed(void)
The registered sink has flushed all samples.
void unregisterSink(void)
Unregister the previously registered audio sink.
AudioSource(void)
Default constuctor.
virtual void resumeOutput(void)
Resume audio output to the sink.
int sinkWriteSamples(const float *samples, int len)
A class for creating a TCP client connection.
Namespace for the asynchronous programming classes.