mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-07 03:07:34 +01:00
Merge branch 'AlexandreRouma:master' into patch-1
This commit is contained in:
commit
5974839515
@ -131,12 +131,15 @@ namespace dsp {
|
|||||||
|
|
||||||
level = pow(10, ((10.0f * log10f(level)) - (_CorrectedFallRate * count)) / 10.0f);
|
level = pow(10, ((10.0f * log10f(level)) - (_CorrectedFallRate * count)) / 10.0f);
|
||||||
|
|
||||||
|
if (level < 10e-14) { level = 10e-14; }
|
||||||
|
|
||||||
float absVal;
|
float absVal;
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
absVal = fabsf(_in->readBuf[i]);
|
absVal = fabsf(_in->readBuf[i]);
|
||||||
if (absVal > level) { level = absVal; }
|
if (absVal > level) { level = absVal; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
volk_32f_s32f_multiply_32f(out.writeBuf, _in->readBuf, 1.0f / level, count);
|
volk_32f_s32f_multiply_32f(out.writeBuf, _in->readBuf, 1.0f / level, count);
|
||||||
|
|
||||||
_in->flush();
|
_in->flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user