mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
fix VST audioMasterPinConnected callback
This commit is contained in:
parent
86c93292d4
commit
01403dc1dd
1 changed files with 17 additions and 0 deletions
|
|
@ -125,6 +125,23 @@ intptr_t Session::vst_callback (
|
|||
// value is 0 for input and != 0 otherwise. note: the
|
||||
// return value is 0 for <true> such that older versions
|
||||
// will always return true.
|
||||
if (!plug) {
|
||||
return 1;
|
||||
}
|
||||
switch (value) {
|
||||
case 0:
|
||||
if (index < plug->numInputs) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (index < plug->numOutputs) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 1;
|
||||
|
||||
case audioMasterWantMidi:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue