Hi Charles!
Help me please:)
If i write in Oxygen my code in C style, this not work and show errors...
#include "inc\msvcrt.inc"
#define effVendorName 1
struct AEffect
{
int* (*dispatcher) (struct AEffect*, int, int, int*, void*, float);
};
int* dispatcher(AEffect *effect, int index, int opcode, int *value, void* ptr, float opt);
{
switch (opcode)
{
case effVendorName:
strncpy((char*)ptr, "Alexey Longard", 20);
}
...
}
AEffect* VSTPluginMain()
{
AEffect *effect = (AEffect*) malloc(sizeof(AEffect));
memset(effect, 0, sizeof(AEffect));
effect->dispatcher = @dispatcher;
return effect;
}
Thanks in advance!!!
Happy Merry Christmas and happy New Year!
Cheers.