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;