diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-11 21:55:11 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-11 21:55:11 +0000 |
commit | 6f5ee7c4293c43486d48bac00fdcdba90dabb17d (patch) | |
tree | 9468080d65f78d36c187403e581ccdd17a07be40 /libs/ardour/session_vst.cc | |
parent | 2578d5da0ef6e7256d25fc737a53bb0294bc19a3 (diff) |
Fix up VST build and add basic support for VSTi
git-svn-id: svn://localhost/ardour2/branches/3.0@7403 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r-- | libs/ardour/session_vst.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index 7f13d3e18b..85b5f13c4c 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -58,11 +58,11 @@ long Session::vst_callback (AEffect* effect, if (effect && effect->user) { plug = (VSTPlugin*) (effect->user); session = &plug->session(); - SHOW_CALLBACK ("am callback 0x%x, opcode = %ld, plugin = \"%s\" ", pthread_self(), opcode, plug->name()); + SHOW_CALLBACK ("am callback 0x%x, opcode = %ld, plugin = \"%s\" ", (int) pthread_self(), opcode, plug->name()); } else { plug = 0; session = 0; - SHOW_CALLBACK ("am callback 0x%x, opcode = %ld", pthread_self(), opcode); + SHOW_CALLBACK ("am callback 0x%x, opcode = %ld", (int) pthread_self(), opcode); } switch(opcode){ @@ -107,6 +107,9 @@ long Session::vst_callback (AEffect* effect, case audioMasterWantMidi: SHOW_CALLBACK ("amc: audioMasterWantMidi\n"); // <value> is a filter which is currently ignored + if (plug) { + plug->get_info()->n_inputs.set_midi (1); + } return 0; case audioMasterGetTime: @@ -345,7 +348,7 @@ long Session::vst_callback (AEffect* effect, return 0; default: - SHOW_CALLBACK ("VST master dispatcher: undefed: %d\n", opcode); + SHOW_CALLBACK ("VST master dispatcher: undefed: %ld\n", opcode); break; } |