30 #ifndef ASYNC_AUDIO_JITTER_FIFO_INCLUDED 31 #define ASYNC_AUDIO_JITTER_FIFO_INCLUDED 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);
bool empty(void) const
Check if the FIFO is empty.
A FIFO class for handling audio samples.
virtual ~AudioJitterFifo(void)
Destructor.
This file contains the base class for an audio source.
virtual void flushSamples(void)
Tell the FIFO to flush the previously written samples.
This file contains the base class for an audio sink.
unsigned samplesInFifo(void) const
Find out how many samples there are in the FIFO.
AudioJitterFifo(unsigned fifo_size)
Constuctor.
virtual void allSamplesFlushed(void)
The registered sink has flushed all samples.
virtual int writeSamples(const float *samples, int count)
Write samples into the FIFO.
The base class for an audio sink.
Namespace for the asynchronous programming classes.
void setSize(unsigned new_size)
Set the size of the FIFO.
void clear(void)
Clear all samples from the FIFO.
The base class for an audio source.
virtual void resumeOutput(void)
Resume audio output to the connected sink.