From d5019e916cb2735ad94d46b2b56d31f9343928e2 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 19 Dec 2016 08:40:23 +0100 Subject: [PATCH] WFM modulator: Windows build: fixed compile error with MinGW --- plugins/channeltx/modwfm/wfmmod.cpp | 2 +- plugins/channeltx/modwfm/wfmmod.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channeltx/modwfm/wfmmod.cpp b/plugins/channeltx/modwfm/wfmmod.cpp index e7979ea89..cd41e8aa3 100644 --- a/plugins/channeltx/modwfm/wfmmod.cpp +++ b/plugins/channeltx/modwfm/wfmmod.cpp @@ -215,7 +215,7 @@ void WFMMod::pullAF(Complex& sample) } } -void WFMMod::calculateLevel(Real& sample) +void WFMMod::calculateLevel(const Real& sample) { if (m_levelCalcCount < m_levelNbSamples) { diff --git a/plugins/channeltx/modwfm/wfmmod.h b/plugins/channeltx/modwfm/wfmmod.h index af5b9140e..47282bd95 100644 --- a/plugins/channeltx/modwfm/wfmmod.h +++ b/plugins/channeltx/modwfm/wfmmod.h @@ -326,7 +326,7 @@ private: void apply(); void pullAF(Complex& sample); - void calculateLevel(Real& sample); + void calculateLevel(const Real& sample); void openFileStream(); void seekFileStream(int seekPercentage); };