changeset 107:52af71802ffd

* document library dependencies * remove dependency of transform on audioio
author Chris Cannam
date Thu, 13 Mar 2008 10:12:14 +0000
parents b9faa1418d29
children e25e8f5d785b
files audioio/AudioCallbackPlaySource.cpp audioio/AudioCallbackPlaySource.h
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Wed Mar 12 18:02:17 2008 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Thu Mar 13 10:12:14 2008 +0000
@@ -889,8 +889,12 @@
 }
 
 void
-AudioCallbackPlaySource::setAuditioningPlugin(RealTimePluginInstance *plugin)
+AudioCallbackPlaySource::setAuditioningEffect(Auditionable *a)
 {
+    RealTimePluginInstance *plugin = dynamic_cast<RealTimePluginInstance *>(a);
+    if (a && !plugin) {
+        std::cerr << "WARNING: AudioCallbackPlaySource::setAuditioningEffect: auditionable object " << a << " is not a real-time plugin instance" << std::endl;
+    }
     RealTimePluginInstance *formerPlugin = m_auditioningPlugin;
     m_auditioningPlugin = plugin;
     m_auditioningPluginBypassed = false;
--- a/audioio/AudioCallbackPlaySource.h	Wed Mar 12 18:02:17 2008 +0000
+++ b/audioio/AudioCallbackPlaySource.h	Thu Mar 13 10:12:14 2008 +0000
@@ -219,12 +219,12 @@
      *
      * This playback source takes ownership of the plugin, which will
      * be deleted at some point after the following call to
-     * setAuditioningPlugin (depending on real-time constraints).
+     * setAuditioningEffect (depending on real-time constraints).
      *
      * Pass a null pointer to remove the current auditioning plugin,
      * if any.
      */
-    void setAuditioningPlugin(RealTimePluginInstance *plugin);
+    void setAuditioningEffect(Auditionable *plugin);
 
     /**
      * Specify that only the given set of models should be played.