Essentia  2.1-beta5-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()

int add ( const Real inputData,
int  inputSize 
)
inline

◆ get()

int get ( Real outputData,
int  outputSize 
)
inline

◆ reset()

void reset ( )
inline

◆ waitAvailable()

void waitAvailable ( void  )
inline

◆ waitSpace()

void waitSpace ( void  )
inline

Member Data Documentation

◆ _available

Atomic _available

◆ _buffer

Real* _buffer

◆ _bufferSize

int _bufferSize

◆ _readIndex

int _readIndex

◆ _space

Atomic _space

◆ _waitingCondition

◆ _writeIndex

int _writeIndex

◆ condition

Condition condition

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