Mercurial > hg > svcore
diff plugin/LADSPAPluginInstance.cpp @ 689:573d45e9487b
Merge from debug-output branch
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 14:47:59 +0100 |
parents | 06f13a3b9e9e |
children | 1424aa29ae95 |
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp Tue Jun 14 13:43:03 2011 +0100 +++ b/plugin/LADSPAPluginInstance.cpp Tue Jun 14 14:47:59 2011 +0100 @@ -207,8 +207,8 @@ for (unsigned int i = 0; i < m_controlPortsIn.size(); ++i) { if (id == m_descriptor->PortNames[m_controlPortsIn[i].first]) { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::setParameter: Found id " - << id << " at control port " << i << std::endl; + DEBUG << "LADSPAPluginInstance::setParameter: Found id " + << id << " at control port " << i << endl; #endif setParameterValue(i, value); break; @@ -220,8 +220,8 @@ LADSPAPluginInstance::init(int idealChannelCount) { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::init(" << idealChannelCount << "): plugin has " - << m_descriptor->PortCount << " ports" << std::endl; + DEBUG << "LADSPAPluginInstance::init(" << idealChannelCount << "): plugin has " + << m_descriptor->PortCount << " ports" << endl; #endif // Discover ports numbers and identities @@ -232,12 +232,12 @@ if (LADSPA_IS_PORT_INPUT(m_descriptor->PortDescriptors[i])) { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::init: port " << i << " is audio in" << std::endl; + DEBUG << "LADSPAPluginInstance::init: port " << i << " is audio in" << endl; #endif m_audioPortsIn.push_back(i); } else { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::init: port " << i << " is audio out" << std::endl; + DEBUG << "LADSPAPluginInstance::init: port " << i << " is audio out" << endl; #endif m_audioPortsOut.push_back(i); } @@ -247,7 +247,7 @@ if (LADSPA_IS_PORT_INPUT(m_descriptor->PortDescriptors[i])) { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::init: port " << i << " is control in" << std::endl; + DEBUG << "LADSPAPluginInstance::init: port " << i << " is control in" << endl; #endif LADSPA_Data *data = new LADSPA_Data(0.0); m_controlPortsIn.push_back( @@ -256,7 +256,7 @@ } else { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::init: port " << i << " is control out" << std::endl; + DEBUG << "LADSPAPluginInstance::init: port " << i << " is control out" << endl; #endif LADSPA_Data *data = new LADSPA_Data(0.0); m_controlPortsOut.push_back( @@ -273,8 +273,8 @@ } #ifdef DEBUG_LADSPA else - std::cerr << "LADSPAPluginInstance::init - " - << "unrecognised port type" << std::endl; + DEBUG << "LADSPAPluginInstance::init - " + << "unrecognised port type" << endl; #endif } @@ -341,7 +341,7 @@ LADSPAPluginInstance::~LADSPAPluginInstance() { #ifdef DEBUG_LADSPA - std::cerr << "LADSPAPluginInstance::~LADSPAPluginInstance" << std::endl; + DEBUG << "LADSPAPluginInstance::~LADSPAPluginInstance" << endl; #endif if (m_instanceHandles.size() != 0) { // "isOK()"