Go to the documentation of this file.
28 #ifndef ASYNC_SIGC_AUDIO_SINK_INCLUDED
29 #define ASYNC_SIGC_AUDIO_SINK_INCLUDED
38 #include <sigc++/sigc++.h>
114 class SigCAudioSink :
public AudioSink,
public sigc::trackable
140 virtual int writeSamples(
const float *samples,
int count)
sigc::signal< int, float *, int > sigWriteSamples
Signal that is emitted when the source write samples.
sigc::signal< void > sigFlushSamples
Signal emitted when the source are finished writing samples.
virtual int writeSamples(const float *samples, int count)
Write samples into this audio sink.
virtual void flushSamples(void)
Tell the sink to flush the previously written samples.
~SigCAudioSink(void)
Destructor.
void allSamplesFlushed(void)
Tell the source that all samples have been flushed.
void resumeOutput(void)
Tell the source that we are ready to accept more samples.
Namespace for the asynchronous programming classes.
This file contains the base class for an audio sink.
SigCAudioSink(void)
Default constuctor.
void sourceAllSamplesFlushed(void)
Tell the source that all samples have been flushed.
void sourceResumeOutput(void)
Tell the source that we are ready to accept more samples.