From 3a6f2b5481d221a7388fce69129d96834aa29dbb Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 2 Sep 2015 02:20:57 +0200 Subject: [PATCH] Corrected decimation scaling for 8 bit samples so it fits other sample sizes range --- include-gpl/dsp/decimators.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include-gpl/dsp/decimators.h b/include-gpl/dsp/decimators.h index 348fb8bf5..0f5493b73 100644 --- a/include-gpl/dsp/decimators.h +++ b/include-gpl/dsp/decimators.h @@ -55,16 +55,16 @@ struct decimation_shifts<16, 12> template<> struct decimation_shifts<16, 8> { - static const uint pre1 = 8; - static const uint pre2 = 7; + static const uint pre1 = 5; + static const uint pre2 = 4; static const uint post2 = 0; - static const uint pre4 = 6; + static const uint pre4 = 3; static const uint post4 = 0; - static const uint pre8 = 5; + static const uint pre8 = 2; static const uint post8 = 0; - static const uint pre16 = 4; + static const uint pre16 = 1; static const uint post16 = 0; - static const uint pre32 = 3; + static const uint pre32 = 0; static const uint post32 = 0; };