using namespace ARDOUR;
-long Session::vst_callback (AEffect* effect,
- long opcode,
- long index,
- long value,
- void* ptr,
- float opt)
+intptr_t Session::vst_callback (
+ AEffect* effect,
+ int32_t opcode,
+ int32_t index,
+ intptr_t value,
+ void* ptr,
+ float opt
+ )
{
static VstTimeInfo _timeInfo;
WindowsVSTPlugin* plug;
if (effect && effect->user) {
plug = (WindowsVSTPlugin*) (effect->user);
session = &plug->session();
- SHOW_CALLBACK ("am callback 0x%x, opcode = %ld, plugin = \"%s\" ", (int) pthread_self(), opcode, plug->name());
+ SHOW_CALLBACK ("am callback 0x%x, opcode = %d, plugin = \"%s\" ", (int) pthread_self(), opcode, plug->name());
} else {
plug = 0;
session = 0;
- SHOW_CALLBACK ("am callback 0x%x, opcode = %ld", (int) pthread_self(), opcode);
+ SHOW_CALLBACK ("am callback 0x%x, opcode = %d", (int) pthread_self(), opcode);
}
switch(opcode){
return 0;
default:
- SHOW_CALLBACK ("VST master dispatcher: undefed: %ld\n", opcode);
+ SHOW_CALLBACK ("VST master dispatcher: undefed: %d\n", opcode);
break;
}
} VstTimeInfo;
-
-typedef long int (* audioMasterCallback)( AEffect * , long int , long int ,
- long int , void * , float );
-// we don't use it, may be noise
-#define VSTCALLBACK
-
-
-
+typedef intptr_t (* audioMasterCallback) (AEffect *, int32_t, int32_t, intptr_t, void *, float);
#endif