fix vst plugin; not sure if this was the intention, but it builds now.
authorBen Loftis <ben@harrisonconsoles.com>
Mon, 21 Sep 2015 02:20:12 +0000 (21:20 -0500)
committerRobin Gareus <robin@gareus.org>
Mon, 21 Sep 2015 08:10:07 +0000 (10:10 +0200)
libs/ardour/session_vst.cc

index 404c297e8a7ac5a6317fa3efec6b79176d1d59fb..2f3b527b051a3803819e0cb4001a44850a793b09 100644 (file)
@@ -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;