mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-24 16:54:45 +01:00
More fixes
This commit is contained in:
parent
6c05c11a62
commit
8a4055920d
@ -60,8 +60,6 @@ namespace dsp {
|
|||||||
int count = _in->read();
|
int count = _in->read();
|
||||||
if (count < 0) { return -1; }
|
if (count < 0) { return -1; }
|
||||||
|
|
||||||
bufMtx.lock();
|
|
||||||
|
|
||||||
memcpy(bufStart, _in->readBuf, count * sizeof(T));
|
memcpy(bufStart, _in->readBuf, count * sizeof(T));
|
||||||
_in->flush();
|
_in->flush();
|
||||||
|
|
||||||
@ -83,10 +81,7 @@ namespace dsp {
|
|||||||
}
|
}
|
||||||
_inIndex = inIndex - count;
|
_inIndex = inIndex - count;
|
||||||
|
|
||||||
if (!out.swap(outIndex)) {
|
if (!out.swap(outIndex)) { return -1; }
|
||||||
bufMtx.unlock();
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
memmove(buffer, &buffer[count], tapCount * sizeof(T));
|
memmove(buffer, &buffer[count], tapCount * sizeof(T));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user