VST 3 SDK  VST 3.7
SDK for developing VST plug-in
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
ParameterChangeTransfer Class Reference

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
 
ParameterChangechanges
 
volatile int32 readIndex
 
volatile int32 writeIndex
 

Detailed Description

Ring buffer for transferring parameter changes from a writer to a read thread .

Constructor & Destructor Documentation

ParameterChangeTransfer ( int32  maxParameters = 0)

Member Function Documentation

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 ( )
inline

Member Data Documentation

int32 size
protected
ParameterChange* changes
protected
volatile int32 readIndex
protected
volatile int32 writeIndex
protected
Empty

Copyright ©2022 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.