diff plugin/DSSIPluginInstance.cpp @ 843:e802e550a1f2

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 13:35:08 +0000
parents 7eb389da7976
children a299c4cec0f8
line wrap: on
line diff
--- a/plugin/DSSIPluginInstance.cpp	Tue Nov 26 11:16:37 2013 +0000
+++ b/plugin/DSSIPluginInstance.cpp	Tue Nov 26 13:35:08 2013 +0000
@@ -182,7 +182,7 @@
     for (unsigned int i = 0; i < m_controlPortsIn.size(); ++i) {
         if (id == m_descriptor->LADSPA_Plugin->PortNames[m_controlPortsIn[i].first]) {
 #ifdef DEBUG_DSSI
-            std::cerr << "Matches port " << i << std::endl;
+            cerr << "Matches port " << i << endl;
 #endif
             float v = getParameterValue(i);
 #ifdef DEBUG_DSSI
@@ -250,7 +250,7 @@
 		if (!strcmp(descriptor->PortNames[i], "latency") ||
 		    !strcmp(descriptor->PortNames[i], "_latency")) {
 #ifdef DEBUG_DSSI
-		    std::cerr << "Wooo! We have a latency port!" << std::endl;
+		    cerr << "Wooo! We have a latency port!" << endl;
 #endif
 		    m_latencyPort = data;
 		}
@@ -458,15 +458,15 @@
     if (!m_descriptor) return;
 
 #ifdef DEBUG_DSSI
-    std::cout << "DSSIPluginInstance::instantiate - plugin \"unique\" id = "
-              << m_descriptor->LADSPA_Plugin->UniqueID << std::endl;
+    cout << "DSSIPluginInstance::instantiate - plugin \"unique\" id = "
+              << m_descriptor->LADSPA_Plugin->UniqueID << endl;
 #endif
     const LADSPA_Descriptor *descriptor = m_descriptor->LADSPA_Plugin;
 
     if (!descriptor->instantiate) {
-	std::cerr << "Bad plugin: plugin id " << descriptor->UniqueID
+	cerr << "Bad plugin: plugin id " << descriptor->UniqueID
 		  << ":" << descriptor->Label
-		  << " has no instantiate method!" << std::endl;
+		  << " has no instantiate method!" << endl;
 	return;
     }
 
@@ -897,7 +897,7 @@
 	qm = qm + message;
 	free(message);
 
-        std::cerr << "DSSIPluginInstance::configure: warning: configure returned message: \"" << qm << "\"" << std::endl;
+        cerr << "DSSIPluginInstance::configure: warning: configure returned message: \"" << qm << "\"" << endl;
     }
 
     return qm;
@@ -918,7 +918,7 @@
     if (m_haveLastEventSendTime &&
 	m_lastEventSendTime > eventTime) {
 #ifdef DEBUG_DSSI_PROCESS
-	std::cerr << "... clearing down" << std::endl;
+	cerr << "... clearing down" << endl;
 #endif
 	m_haveLastEventSendTime = false;
 	clearEvents();
@@ -1046,7 +1046,7 @@
 #ifdef DEBUG_DSSI_PROCESS
 	SVDEBUG << "DSSIPluginInstance::run: evTime " << evTime << ", blockTime " << blockTime << ", frameOffset " << frameOffset
 		  << ", blockSize " << m_blockSize << endl;
-	std::cerr << "Type: " << int(ev->type) << ", pitch: " << int(ev->data.note.note) << ", velocity: " << int(ev->data.note.velocity) << std::endl;
+	cerr << "Type: " << int(ev->type) << ", pitch: " << int(ev->data.note.note) << ", velocity: " << int(ev->data.note.velocity) << endl;
 #endif
 
 	if (frameOffset >= int(count)) break;
@@ -1100,8 +1100,8 @@
 
 #ifdef DEBUG_DSSI_PROCESS
 //    for (int i = 0; i < count; ++i) {
-//	std::cout << m_outputBuffers[0][i] << " ";
-//	if (i % 8 == 0) std::cout << std::endl;
+//	cout << m_outputBuffers[0][i] << " ";
+//	if (i % 8 == 0) cout << endl;
 //    }
 #endif
 
@@ -1321,10 +1321,10 @@
     if (!m_descriptor) return;
 
     if (!m_descriptor->LADSPA_Plugin->cleanup) {
-	std::cerr << "Bad plugin: plugin id "
+	cerr << "Bad plugin: plugin id "
 		  << m_descriptor->LADSPA_Plugin->UniqueID
 		  << ":" << m_descriptor->LADSPA_Plugin->Label
-		  << " has no cleanup method!" << std::endl;
+		  << " has no cleanup method!" << endl;
 	return;
     }