diff --git a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp index 723638bf0..beb5842b3 100644 --- a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp +++ b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp @@ -44,8 +44,6 @@ SDRdaemonSourceInput::SDRdaemonSourceInput(DeviceSourceAPI *deviceAPI) : m_port(9090), m_SDRdaemonUDPHandler(0), m_deviceDescription(), - m_sampleRate(0), - m_centerFrequency(0), m_startingTimeStamp(0), m_masterTimer(deviceAPI->getMasterTimer()), m_autoFollowRate(false), @@ -96,12 +94,12 @@ const QString& SDRdaemonSourceInput::getDeviceDescription() const int SDRdaemonSourceInput::getSampleRate() const { - return m_sampleRate; + return m_settings.m_sampleRate; } quint64 SDRdaemonSourceInput::getCenterFrequency() const { - return m_centerFrequency; + return m_settings.m_centerFrequency; } std::time_t SDRdaemonSourceInput::getStartingTimeStamp() const diff --git a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.h b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.h index a966e69f7..cb44ecea2 100644 --- a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.h +++ b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.h @@ -323,12 +323,11 @@ public: private: DeviceSourceAPI *m_deviceAPI; QMutex m_mutex; + SDRdaemonSourceSettings m_settings; QString m_address; quint16 m_port; SDRdaemonSourceUDPHandler* m_SDRdaemonUDPHandler; QString m_deviceDescription; - int m_sampleRate; - quint64 m_centerFrequency; std::time_t m_startingTimeStamp; const QTimer& m_masterTimer; bool m_autoFollowRate;