Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soundtouch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authoroparviai <oparviai@f3a24b6a-cf45-0410-b55a-8c22e2698227>2012-08-30 20:28:27 +0400
committeroparviai <oparviai@f3a24b6a-cf45-0410-b55a-8c22e2698227>2012-08-30 20:28:27 +0400
commiteef6fac217fe7336a94be98a841fe4be0826ef88 (patch)
tree72fd418c8d52f33c5358b60aca24c73eb45cd57b /source
parent713224ab34eaff2625719ecb7b50f838b1e843a1 (diff)
Increased "climbcount" to improve peak detection
Diffstat (limited to 'source')
-rw-r--r--source/SoundTouch/PeakFinder.cpp2
1 files changed, 1 insertions, 1 deletions
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;