the way I did it is like this... (for code junkies)
Code: Select all
//==============================================================================
// Create a shared data segment in dll (these vars become global to all instances)
//==============================================================================
#pragma data_seg("SHARED")
struct BufferRec
{
int id;
int mode;
float left[MAX_LATENCY];
float right[MAX_LATENCY];
};
BufferRec buffer[MAX_CHANNELS][MAX_INSTANCES];
int numSendsOnThisCh[MAX_INSTANCES];
int numRecvsOnThisCh[MAX_INSTANCES];
int instanceSlot[MAX_INSTANCES-1];
int randomCheck;
#pragma data_seg()

