Mercurial > hg > vamp-plugin-sdk
diff examples/AmplitudeFollower.cpp @ 510:8742125177ae
Merge from branch vamp-kiss-naming
author | Chris Cannam |
---|---|
date | Thu, 08 Feb 2018 15:40:33 +0000 |
parents | 90571dcc371a |
children |
line wrap: on
line diff
--- a/examples/AmplitudeFollower.cpp Tue Jan 30 15:28:15 2018 +0000 +++ b/examples/AmplitudeFollower.cpp Thu Feb 08 15:40:33 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