22 #ifndef TITANIC_AUDIO_BUFFER_H 23 #define TITANIC_AUDIO_BUFFER_H 25 #include "titanic/support/fixed_queue.h" 26 #include "common/mutex.h" 30 #define AUDIO_SAMPLING_RATE 22050 40 void enterCriticalSection();
45 void leaveCriticalSection();
84 void push(int16 value);
89 void push(
const int16 *values,
int count);
99 int read(int16 *values,
int count);
bool empty() const
Definition: audio_buffer.h:59
int size() const
Definition: audio_buffer.h:64
bool full() const
Definition: audio_buffer.h:74
Definition: audio_buffer.h:32
size_type freeSize() const
Definition: fixed_queue.h:52
bool full() const
Definition: fixed_queue.h:64
size_type size() const
Definition: fixed_queue.h:47
int read(int16 *values, int count)
bool isFinished() const
Definition: audio_buffer.h:79
int freeSize() const
Definition: audio_buffer.h:69
bool empty() const
Definition: fixed_queue.h:57
Definition: fixed_queue.h:34
void finalize()
Definition: audio_buffer.h:104