diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index 404c297e8a..2f3b527b05 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -130,12 +130,12 @@ intptr_t Session::vst_callback ( } switch (value) { case 0: - if (index < plug->numInputs) { + if (index < plug->input_streams().n_audio()) { return 0; } break; case 1: - if (index < plug->numOutputs) { + if (index < plug->output_streams().n_audio()) { return 0; } break;