From 8a4055920d663b01c54d9f44042d967b08486fe0 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 26 Jul 2021 21:44:15 +0200 Subject: [PATCH] More fixes --- core/src/dsp/decimation.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/dsp/decimation.h b/core/src/dsp/decimation.h index 3811b906..9287611a 100644 --- a/core/src/dsp/decimation.h +++ b/core/src/dsp/decimation.h @@ -60,8 +60,6 @@ namespace dsp { int count = _in->read(); if (count < 0) { return -1; } - bufMtx.lock(); - memcpy(bufStart, _in->readBuf, count * sizeof(T)); _in->flush(); @@ -83,10 +81,7 @@ namespace dsp { } _inIndex = inIndex - count; - if (!out.swap(outIndex)) { - bufMtx.unlock(); - return -1; - } + if (!out.swap(outIndex)) { return -1; } memmove(buffer, &buffer[count], tapCount * sizeof(T));