Okay, I figured out the issue. In PeakFinder::getPeakCenter, there are some floating point issues when peakLevel == groundLevel.
At line 199 of PeakFinder.cpp, cutLevel is calculated as 0.70f * peakLevel + 0.30f * groundLevel, which can sometimes end up with cutLevel > groundLevel due to floating point errors, and this triggers the assertion error.
Okay, I figured out the issue. In PeakFinder: :getPeakCenter, there are some floating point issues when peakLevel == groundLevel.
At line 199 of PeakFinder.cpp, cutLevel is calculated as 0.70f * peakLevel + 0.30f * groundLevel, which can sometimes end up with cutLevel > groundLevel due to floating point errors, and this triggers the assertion error.