From 19f5b9a202d127e47267b02b708c902e8b06149d Mon Sep 17 00:00:00 2001 From: "Christian R. Helmrich" Date: Fri, 24 Apr 2020 00:00:14 +0200 Subject: [PATCH] TNS sync tuning --- src/lib/linearPrediction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/linearPrediction.cpp b/src/lib/linearPrediction.cpp index c526df4..1914410 100644 --- a/src/lib/linearPrediction.cpp +++ b/src/lib/linearPrediction.cpp @@ -1,5 +1,5 @@ /* linearPrediction.cpp - source file for class providing linear prediction capability - * written by C. R. Helmrich, last modified in 2019 - see License.htm for legal notices + * written by C. R. Helmrich, last modified in 2020 - see License.htm for legal notices * * The copyright in this software is being made available under a Modified BSD-Style License * and comes with ABSOLUTELY NO WARRANTY. This software may be subject to other third- @@ -417,5 +417,5 @@ bool LinearPredictor::similarParCorCoeffs (const short* const parCorCoeffs1, con sumAbsDiff += abs (parCorCoeffs1[s] - parCorCoeffs2[s]); } - return (sumAbsDiff < ((unsigned) nCoeffs << (parCorCoeffBitDepth >> 1))); + return (sumAbsDiff < ((3u * (unsigned) nCoeffs) << (parCorCoeffBitDepth >> 1))); }