summaryrefslogtreecommitdiff
blob: e409fb7a8874dcddc2668376275146b2377d4639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Index: amSynth-1.2.0/src/MidiController.cc
===================================================================
--- amSynth-1.2.0.orig/src/MidiController.cc
+++ amSynth-1.2.0/src/MidiController.cc
@@ -5,6 +5,9 @@
 #include "MidiController.h"
 #include <fstream>
 #include <assert.h>
+#ifdef _DEBUG
+#include <iostream>
+#endif
 
 using namespace std;
 
Index: amSynth-1.2.0/src/Parameter.cc
===================================================================
--- amSynth-1.2.0.orig/src/Parameter.cc
+++ amSynth-1.2.0/src/Parameter.cc
@@ -71,15 +71,15 @@ Parameter::setValue(float value)
 			controlValue = offset + ::pow( _value, (float)base );
 #ifdef _DEBUG
 		default:
-		cout << "<Parameter> mode is undefined" << endl;
+		std::cout << "<Parameter> mode is undefined" << std::endl;
 		break;
 #endif
 	}
 	
 #ifdef _DEBUG
-	cout << "<Parameter::setValue( " << foo 
+	std::cout << "<Parameter::setValue( " << foo 
 	<< " ) min=" << _min << " max=" << _max << " value set to " << _value 
-	<< " controlValue set to " << controlValue << endl;
+	<< " controlValue set to " << controlValue << std::endl;
 #endif
 	
 	// TODO: only update() Listeners it there _was_ a change?
@@ -88,7 +88,7 @@ Parameter::setValue(float value)
 		for (unsigned i=0; i<updateListeners.size(); i++)
 		{
 #ifdef _DEBUG
-			cout << "updating UpdateListener " << updateListeners[i] << endl;
+			std::cout << "updating UpdateListener " << updateListeners[i] << std::endl;
 #endif
 			updateListeners[i]->UpdateParameter (mParamId, controlValue);
 		}