From 75ea9b2376f2922bbe1a9d085f6024cade2b64b9 Mon Sep 17 00:00:00 2001 From: wuggy Date: Mon, 29 Jun 2026 19:57:27 +0100 Subject: [PATCH] WAITER WAITER MORE OPENMP CRAP PLEASE --- media/libsoundtouch/src/TDStretch.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/media/libsoundtouch/src/TDStretch.cpp b/media/libsoundtouch/src/TDStretch.cpp index c56d35bbba..e8cd051a32 100644 --- a/media/libsoundtouch/src/TDStretch.cpp +++ b/media/libsoundtouch/src/TDStretch.cpp @@ -310,11 +310,10 @@ int TDStretch::seekBestOverlapPositionFull(const SAMPLETYPE *refPos) const int nChannels = channels; const SAMPLETYPE *midBuffer = pMidBuffer; - #if defined(_OPENMP) - #pragma omp parallel for default(none) shared(refPos, bestCorr, bestOffs, midBuffer) private(i) schedule(static) - #endif - for (i = 1; i < seekLen; i ++) - { +#if defined(_OPENMP) + #pragma omp parallel for default(none) shared(refPos, bestCorr, bestOffs, midBuffer) private(i) schedule(static) +#endif +for (i = 1; i < seekLen; i ++) double corr; double localNorm; // Calculates correlation value for the mixing position corresponding to 'i'