VST 3 SDK VST 3.7
SDK for developing VST plug-in
|
Ring buffer for transferring parameter changes from a writer to a read thread . More...
#include <parameterchanges.h>
Classes | |
struct | ParameterChange |
Public Member Functions | |
ParameterChangeTransfer (int32 maxParameters=0) | |
virtual | ~ParameterChangeTransfer () |
void | setMaxParameters (int32 maxParameters) |
void | addChange (ParamID pid, ParamValue value, int32 sampleOffset) |
bool | getNextChange (ParamID &pid, ParamValue &value, int32 &sampleOffset) |
void | transferChangesTo (ParameterChanges &dest) |
void | transferChangesFrom (ParameterChanges &source) |
void | removeChanges () |
Protected Attributes | |
int32 | size |
ParameterChange * | changes |
volatile int32 | readIndex |
volatile int32 | writeIndex |
Ring buffer for transferring parameter changes from a writer to a read thread .
ParameterChangeTransfer | ( | int32 | maxParameters = 0 | ) |
|
virtual |
void setMaxParameters | ( | int32 | maxParameters | ) |
void addChange | ( | ParamID | pid, |
ParamValue | value, | ||
int32 | sampleOffset | ||
) |
bool getNextChange | ( | ParamID & | pid, |
ParamValue & | value, | ||
int32 & | sampleOffset | ||
) |
void transferChangesTo | ( | ParameterChanges & | dest | ) |
void transferChangesFrom | ( | ParameterChanges & | source | ) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |