Go to the documentation of this file.
30 #ifndef ASYNC_AUDIO_JITTER_FIFO_INCLUDED
31 #define ASYNC_AUDIO_JITTER_FIFO_INCLUDED
120 class AudioJitterFifo :
public AudioSink,
public AudioSource
143 void setSize(
unsigned new_size);
149 bool empty(
void)
const {
return (tail == head); }
176 virtual int writeSamples(
const float *samples,
int count);
216 void writeSamplesFromFifo(
void);
virtual void allSamplesFlushed(void)
The registered sink has flushed all samples.
virtual ~AudioJitterFifo(void)
Destructor.
virtual int writeSamples(const float *samples, int count)
Write samples into the FIFO.
unsigned samplesInFifo(void) const
Find out how many samples there are in the FIFO.
AudioJitterFifo(unsigned fifo_size)
Constuctor.
void setSize(unsigned new_size)
Set the size of the FIFO.
void clear(void)
Clear all samples from the FIFO.
Namespace for the asynchronous programming classes.
This file contains the base class for an audio sink.
This file contains the base class for an audio source.
virtual void resumeOutput(void)
Resume audio output to the connected sink.
virtual void flushSamples(void)
Tell the FIFO to flush the previously written samples.
bool empty(void) const
Check if the FIFO is empty.