X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Faudioscopes%2Fffttools.cpp;h=3d1ae83fb624dba7639e56deca026735dbedffc7;hb=4e2125a93b533b2d29232d9072a5a757ce2616e1;hp=b16106f26eb2d9162dc7a78379b04c5ddb35b967;hpb=421ff21c695e4b423db3a24951eda9566fd4c116;p=kdenlive diff --git a/src/audioscopes/ffttools.cpp b/src/audioscopes/ffttools.cpp index b16106f2..3d1ae83f 100644 --- a/src/audioscopes/ffttools.cpp +++ b/src/audioscopes/ffttools.cpp @@ -292,7 +292,7 @@ const QVector FFTTools::interpolatePeakPreserving(const QVector in // If there are more than 2 samples per pixel in average, then use the maximum of them // since by only looking at the left sample we might miss some maxima. uint src = left; - int xi_prev = 0; +// int xi_prev = 0; int points; #ifdef DEBUG_FFTTOOLS @@ -316,7 +316,7 @@ const QVector FFTTools::interpolatePeakPreserving(const QVector in points++; } - xi_prev = xi; +// xi_prev = xi; } } // Fill the rest of the vector if the right border exceeds the input vector.