mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +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
|
// value is 0 for input and != 0 otherwise. note: the
|
||||||
// return value is 0 for <true> such that older versions
|
// return value is 0 for <true> such that older versions
|
||||||
// will always return true.
|
// 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;
|
return 1;
|
||||||
|
|
||||||
case audioMasterWantMidi:
|
case audioMasterWantMidi:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue