summaryrefslogtreecommitdiff
path: root/libs/ardour/session_vst.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-21 23:45:15 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-21 23:45:15 +0000
commit2f7b61155e7c5628d74e429a3baafd8c5dd49ddd (patch)
tree0b5407bbd8e14a2d6a184b500182b5ab0921d77d /libs/ardour/session_vst.cc
parent1d8512210ea5b8c35e1508e81f63c6e787a66e4f (diff)
Make the windows VST callback use int32_t rather than long (to make it the same as the linux VST one); I think this is safe as the windows VST code is only built on 32-bit.
git-svn-id: svn://localhost/ardour2/branches/3.0@10754 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r--libs/ardour/session_vst.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc
index 504519bfab..3e3a6d36d2 100644
--- a/libs/ardour/session_vst.cc
+++ b/libs/ardour/session_vst.cc
@@ -40,12 +40,14 @@ static int debug_callbacks = -1;
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;
@@ -58,11 +60,11 @@ long Session::vst_callback (AEffect* effect,
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){
@@ -348,7 +350,7 @@ long Session::vst_callback (AEffect* effect,
return 0;
default:
- SHOW_CALLBACK ("VST master dispatcher: undefed: %ld\n", opcode);
+ SHOW_CALLBACK ("VST master dispatcher: undefed: %d\n", opcode);
break;
}