diff Matcher.cpp @ 10:6ea008aa8817

Fixes to problems reported by plugin tester
author Chris Cannam
date Wed, 06 Aug 2014 12:38:00 +0100
parents b3ec48d9cd2e
children 66082cc488c3
line wrap: on
line diff
--- a/Matcher.cpp	Tue Aug 05 11:06:04 2014 +0100
+++ b/Matcher.cpp	Wed Aug 06 12:38:00 2014 +0100
@@ -27,9 +27,13 @@
 const double Matcher::silenceThreshold = 0.0004;
 const int Matcher::MAX_RUN_COUNT = 3;
 
+//#define DEBUG_MATCHER 1
+
 Matcher::Matcher(float rate, Matcher *p)
 {
+#ifdef DEBUG_MATCHER
     std::cerr << "Matcher::Matcher(" << rate << ", " << p << ")" << std::endl;
+#endif
 
     sampleRate = rate;
     otherMatcher = p;	// the first matcher will need this to be set later
@@ -82,7 +86,9 @@
 
 Matcher::~Matcher()
 {
+#ifdef DEBUG_MATCHER
     std::cerr << "Matcher(" << this << ")::~Matcher()" << std::endl;
+#endif
 
     if (initialised) {