I'm working on a plugin in which I'd like to implement sidechain functionality. The easiest way to do this would be to add one additional input to the plugin, but that's not good idea since most hosts can't handle vst effects with more than 2 inputs. So now I'm thinking about creating a separate plugin which would only fill some shared buffer with audio data. This shared audio buffer would then be taken as sidechain input in the main processing plugin. The problem is my coding skills are pretty lame, and I don't know how to create this kind of shared buffer. I've found this: http://support.microsoft.com/default.as ... -US;100634 , but for some reason that doesn't work for me. When I do something like this:
Code: Select all
#pragma data_seg(".MYSEC")
struct SharedData
{
int plugID;
bool mutex;
bool isNew;
unsigned long blockSize;
float buffer[32768];
} sidechainBusA;
#pragma data_seg()
#pragma comment(linker, "/SECTION:.MYSEC,RWS")Code: Select all
section '.MYSEC' specified with /SECTION option does not existDoes anyone have an idea how to do this properly?
Thanks in advance!
cheers,
Bart


