Essentia  2.1-beta6-dev
RingBufferImpl Class Reference

#include <ringbufferimpl.h>

Public Types

enum  WaitingCondition { kAvailable , kSpace }
 

Public Member Functions

 RingBufferImpl (WaitingCondition c, int bufferSize)
 
 ~RingBufferImpl ()
 
void reset ()
 
void waitAvailable (void)
 
void waitSpace (void)
 
int add (const Real *inputData, int inputSize)
 
int get (Real *outputData, int outputSize)
 

Public Attributes

int _bufferSize
 
int _writeIndex
 
int _readIndex
 
Atomic _available
 
Atomic _space
 
Real_buffer
 
Condition condition
 
enum essentia::streaming::RingBufferImpl::WaitingCondition _waitingCondition
 

Member Enumeration Documentation

◆ WaitingCondition

Enumerator
kAvailable 
kSpace 

Constructor & Destructor Documentation

◆ RingBufferImpl()

RingBufferImpl ( WaitingCondition  c,
int  bufferSize 
)
inline

◆ ~RingBufferImpl()

~RingBufferImpl ( )
inline

Member Function Documentation

◆ add()

◆ get()

◆ reset()

◆ waitAvailable()

◆ waitSpace()

Member Data Documentation

◆ _available

◆ _buffer

◆ _bufferSize

◆ _readIndex

int _readIndex

◆ _space

◆ _waitingCondition

◆ _writeIndex

int _writeIndex

◆ condition


The documentation for this class was generated from the following file: