diff plugin/LADSPAPluginInstance.cpp @ 60:3086ff194ea0

* More structural work on feature extraction plugin C <-> C++ adapter * Allow use of LADSPA/DSSI plugins with control outputs as feature extraction plugins (DSSI with MIDI output still to come) * Reorder labels on spectrogram status box * Minor tweaks in doc etc.
author Chris Cannam
date Mon, 27 Mar 2006 15:03:02 +0000
parents 7439f1696314
children 33285f426852
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp	Fri Mar 24 18:15:50 2006 +0000
+++ b/plugin/LADSPAPluginInstance.cpp	Mon Mar 27 15:03:02 2006 +0000
@@ -414,6 +414,13 @@
 }
 
 float
+LADSPAPluginInstance::getControlOutputValue(unsigned int output) const
+{
+    if (output > m_controlPortsOut.size()) return 0.0;
+    return (*m_controlPortsOut[output].second);
+}
+
+float
 LADSPAPluginInstance::getParameterValue(unsigned int parameter) const
 {
     if (parameter >= m_controlPortsIn.size()) return 0.0;