From 78b004b159bbd36574056a1970184aa313df6e0a Mon Sep 17 00:00:00 2001 From: schneider Date: Wed, 31 Aug 2016 22:35:20 +0100 Subject: [PATCH] fix(spectrogramplot): Initialize the tuner transform as passthrough --- spectrogramplot.cpp | 1 - tunertransform.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spectrogramplot.cpp b/spectrogramplot.cpp index f1091a1..2f85de9 100644 --- a/spectrogramplot.cpp +++ b/spectrogramplot.cpp @@ -45,7 +45,6 @@ SpectrogramPlot::SpectrogramPlot(std::shared_ptr(src.get()); connect(&tuner, &Tuner::tunerMoved, this, &SpectrogramPlot::tunerMoved); - tunerMoved(); src->subscribe(this); } diff --git a/tunertransform.cpp b/tunertransform.cpp index daa1aa3..89156e7 100644 --- a/tunertransform.cpp +++ b/tunertransform.cpp @@ -21,7 +21,7 @@ #include #include "util.h" -TunerTransform::TunerTransform(SampleSource> *src) : SampleBuffer(src), taps{1.0f} +TunerTransform::TunerTransform(SampleSource> *src) : SampleBuffer(src), frequency(0), bandwidth(1.), taps{1.0f} { }