diff examples/AmplitudeFollower.cpp @ 501:90571dcc371a vamp-kiss-naming

Extensively rename things in the KissFFT headers to use a Vamp prefix. The motivation is not to change anything about the Vamp SDK library builds, but to avoid confusion in case any other code (for example that pulls in the Vamp SDK as part of a wider project definition) accidentally includes these headers instead of, or as well as, some other copy of KissFFT.
author Chris Cannam
date Tue, 30 Jan 2018 09:56:46 +0000
parents 75cc9ced3b01
children
line wrap: on
line diff
--- a/examples/AmplitudeFollower.cpp	Mon Dec 11 13:22:11 2017 +0000
+++ b/examples/AmplitudeFollower.cpp	Tue Jan 30 09:56:46 2018 +0000
@@ -106,10 +106,15 @@
 AmplitudeFollower::initialise(size_t channels, size_t stepSize, size_t blockSize)
 {
     if (channels < getMinChannelCount() ||
-	channels > getMaxChannelCount()) return false;
+	channels > getMaxChannelCount()) {
+	cerr << "ERROR: AmplitudeFollower::initialise: "
+	     << "channel count " << channels << " out of supported range"
+	     << endl;
+        return false;
+    }
 
     m_stepSize = std::min(stepSize, blockSize);
-	
+    
     // Translate the coefficients 
     // from their "convenient" 60dB convergence-time values
     // to real coefficients