Switchboard SDK
Loading...
Searching...
No Matches
switchboard::CircularBuffer Struct Reference

Public Member Functions

 CircularBuffer (int size)
 
void setReadPointer (const int value)
 
void setWritePointer (const int value)
 
void stepReadPointer (const int numberOfSteps=1)
 
void stepWritePointer (const int numberOfSteps=1)
 
float readSample ()
 
float readSample (const int index)
 
void writeSample (const float value)
 
float interpolate (float index)
 
int getFillLevel ()
 
void reset ()
 

Public Attributes

const int size
 
float * buffer
 
int readPointer
 
int writePointer