Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
106:b9faa1418d29 | 107:52af71802ffd |
---|---|
887 | 887 |
888 initialiseConverter(); | 888 initialiseConverter(); |
889 } | 889 } |
890 | 890 |
891 void | 891 void |
892 AudioCallbackPlaySource::setAuditioningPlugin(RealTimePluginInstance *plugin) | 892 AudioCallbackPlaySource::setAuditioningEffect(Auditionable *a) |
893 { | 893 { |
894 RealTimePluginInstance *plugin = dynamic_cast<RealTimePluginInstance *>(a); | |
895 if (a && !plugin) { | |
896 std::cerr << "WARNING: AudioCallbackPlaySource::setAuditioningEffect: auditionable object " << a << " is not a real-time plugin instance" << std::endl; | |
897 } | |
894 RealTimePluginInstance *formerPlugin = m_auditioningPlugin; | 898 RealTimePluginInstance *formerPlugin = m_auditioningPlugin; |
895 m_auditioningPlugin = plugin; | 899 m_auditioningPlugin = plugin; |
896 m_auditioningPluginBypassed = false; | 900 m_auditioningPluginBypassed = false; |
897 if (formerPlugin) m_pluginScavenger.claim(formerPlugin); | 901 if (formerPlugin) m_pluginScavenger.claim(formerPlugin); |
898 } | 902 } |