From e31be08f046efe38ddc85bf9e62b033d4a03f854 Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Tue, 31 Oct 2017 08:20:53 -0400 Subject: [PATCH] Use a DC offset of 127.4 to match the RTL-SDR. --- inputsource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputsource.cpp b/inputsource.cpp index e05cab6..b5f2721 100644 --- a/inputsource.cpp +++ b/inputsource.cpp @@ -89,7 +89,7 @@ public: std::transform(&s[start], &s[start + length], dest, [](const std::complex& v) -> std::complex { const float k = 1.0f / 128.0f; - return { v.real() * k - 1.0f, v.imag() * k - 1.0f }; + return { (v.real() - 127.4f) * k, (v.imag() - 127.4f) * k }; } ); }