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