diff transform/ModelTransformerFactory.cpp @ 389:a1b6d2e33cab

* document library dependencies * remove dependency of transform on audioio
author Chris Cannam
date Thu, 13 Mar 2008 10:12:14 +0000
parents 370aa9714ef5
children 115f60df1e4d
line wrap: on
line diff
--- a/transform/ModelTransformerFactory.cpp	Wed Mar 12 18:02:17 2008 +0000
+++ b/transform/ModelTransformerFactory.cpp	Thu Mar 13 10:12:14 2008 +0000
@@ -20,6 +20,8 @@
 
 #include "TransformFactory.h"
 
+#include "base/AudioPlaySource.h"
+
 #include "plugin/FeatureExtractionPluginFactory.h"
 #include "plugin/RealTimePluginFactory.h"
 #include "plugin/PluginXml.h"
@@ -30,8 +32,6 @@
 
 #include "vamp-sdk/PluginHostAdapter.h"
 
-#include "audioio/AudioCallbackPlaySource.h" //!!! shouldn't include here
-
 #include <iostream>
 #include <set>
 
@@ -71,7 +71,7 @@
 ModelTransformerFactory::getConfigurationForTransform(Transform &transform,
                                                       const std::vector<Model *> &candidateInputModels,
                                                       Model *defaultInputModel,
-                                                      AudioCallbackPlaySource *source,
+                                                      AudioPlaySource *source,
                                                       size_t startFrame,
                                                       size_t duration)
 {
@@ -179,7 +179,7 @@
         plugin = rtp;
 
         if (effect && source && rtp) {
-            source->setAuditioningPlugin(rtp);
+            source->setAuditioningEffect(rtp);
         }
     }
 
@@ -291,7 +291,7 @@
         delete dialog;
 
         if (effect && source) {
-            source->setAuditioningPlugin(0); // will delete our plugin
+            source->setAuditioningEffect(0); // will delete our plugin
         } else {
             delete plugin;
         }