From 290587c4a5288b59036652c8437da48421778f03 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Mon, 14 Feb 2022 13:54:28 +0000 Subject: [PATCH] Fix stereo sound in DAB demod --- plugins/channelrx/demoddab/dabdemodsink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demoddab/dabdemodsink.cpp b/plugins/channelrx/demoddab/dabdemodsink.cpp index 562f69998..b97b345dc 100644 --- a/plugins/channelrx/demoddab/dabdemodsink.cpp +++ b/plugins/channelrx/demoddab/dabdemodsink.cpp @@ -423,7 +423,7 @@ void DABDemodSink::processOneAudioSample(Complex &ci) float factor = m_settings.m_volume / 5.0f; // Should this be 5 or 10? 5 allows some positive gain qint16 l = scale(ci.real(), factor); - qint16 r = scale(ci.real(), factor); + qint16 r = scale(ci.imag(), factor); m_audioBuffer[m_audioBufferFill].l = l; m_audioBuffer[m_audioBufferFill].r = r;