amend 01403dc
(VST Pin connected)
This commit is contained in:
parent
203a72f883
commit
621e9992a7
|
@ -126,16 +126,18 @@ intptr_t Session::vst_callback (
|
||||||
// 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) {
|
if (!plug) {
|
||||||
return 1;
|
// we don't know.
|
||||||
|
// but ardour always connects all buffers, so we're good
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case 0:
|
case 0:
|
||||||
if (index < plug->input_streams().n_audio()) {
|
if (index < plug->plugin()->numInputs) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (index < plug->output_streams().n_audio()) {
|
if (index < plug->plugin()->numOutputs) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user