diff transform/TransformFactory.cpp @ 28:b5f55ea61bb8

* stepsize/blocksize from plugin dialog actually working, though with some puzzlement
author Chris Cannam
date Wed, 20 Sep 2006 14:50:40 +0000
parents 61259228d029
children 544ab25d2372
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Tue Sep 19 14:37:06 2006 +0000
+++ b/transform/TransformFactory.cpp	Wed Sep 20 14:50:40 2006 +0000
@@ -26,6 +26,8 @@
 
 #include "data/model/DenseTimeValueModel.h"
 
+#include "vamp-sdk/PluginHostAdapter.h"
+
 #include <iostream>
 #include <set>
 
@@ -338,7 +340,8 @@
                                   int &minChannels, int &maxChannels)
 {
     Vamp::Plugin *vp = 0;
-    if ((vp = dynamic_cast<Vamp::Plugin *>(plugin))) {
+    if ((vp = dynamic_cast<Vamp::Plugin *>(plugin)) ||
+        (vp = dynamic_cast<Vamp::PluginHostAdapter *>(plugin))) {
         minChannels = vp->getMinChannelCount();
         maxChannels = vp->getMaxChannelCount();
         return true;