diff audioio/AudioCallbackPlaySource.cpp @ 107:52af71802ffd

* document library dependencies * remove dependency of transform on audioio
author Chris Cannam
date Thu, 13 Mar 2008 10:12:14 +0000
parents 907e44e4ecf0
children ab861544f998
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;