From 6fc0dd1867de79a7a02bf0a040ca8eeaa22ad461 Mon Sep 17 00:00:00 2001 From: oparviai Date: Thu, 30 Aug 2012 16:28:27 +0000 Subject: [PATCH] Increased "climbcount" to improve peak detection --- source/SoundTouch/PeakFinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SoundTouch/PeakFinder.cpp b/source/SoundTouch/PeakFinder.cpp index cc2113b..7f70c3c 100644 --- a/source/SoundTouch/PeakFinder.cpp +++ b/source/SoundTouch/PeakFinder.cpp @@ -132,7 +132,7 @@ int PeakFinder::findGround(const float *data, int peakpos, int direction) const { // going uphill, increase climbing counter climb_count ++; - if (climb_count > 5) break; // we've been climbing too long => it's next uphill => quit + if (climb_count >= 10) break; // we've been climbing too long => it's next uphill => quit } } return lowpos;