diff --git a/plugins/channeltx/filesource/filesource.cpp b/plugins/channeltx/filesource/filesource.cpp index e2a88bc0b..2815a1a8a 100644 --- a/plugins/channeltx/filesource/filesource.cpp +++ b/plugins/channeltx/filesource/filesource.cpp @@ -500,4 +500,9 @@ void FileSource::getMagSqLevels(double& avg, double& peak, int& nbSamples) const void FileSource::propagateMessageQueueToGUI() { m_basebandSource->setMessageQueueToGUI(getMessageQueueToGUI()); +} + +double FileSource::getMagSq() const +{ + return m_basebandSource->getMagSq(); } \ No newline at end of file diff --git a/plugins/channeltx/udpsource/udpsource.cpp b/plugins/channeltx/udpsource/udpsource.cpp index c33edd911..bd3c4e1f5 100644 --- a/plugins/channeltx/udpsource/udpsource.cpp +++ b/plugins/channeltx/udpsource/udpsource.cpp @@ -560,4 +560,23 @@ void UDPSource::networkManagerFinished(QNetworkReply *reply) void UDPSource::setLevelMeter(QObject *levelMeter) { connect(m_basebandSource, SIGNAL(levelChanged(qreal, qreal, int)), levelMeter, SLOT(levelChanged(qreal, qreal, int))); +} + +double UDPSource::getMagSq() const +{ + return m_basebandSource->getMagSq(); +} +double UDPSource::getInMagSq() const +{ + return m_basebandSource->getInMagSq(); +} + +int32_t UDPSource::getBufferGauge() const +{ + return m_basebandSource->getBufferGauge(); +} + +bool UDPSource::getSquelchOpen() const +{ + return m_basebandSource->getSquelchOpen(); } \ No newline at end of file diff --git a/plugins/channeltx/udpsource/udpsource.h b/plugins/channeltx/udpsource/udpsource.h index a7dba4052..1baeaa4f9 100644 --- a/plugins/channeltx/udpsource/udpsource.h +++ b/plugins/channeltx/udpsource/udpsource.h @@ -144,7 +144,7 @@ public: double getMagSq() const; double getInMagSq() const; int32_t getBufferGauge() const; - bool getSquelchOpen(); + bool getSquelchOpen() const; void setSpectrumSink(BasebandSampleSink* spectrum); void setSpectrum(bool enabled); void resetReadIndex(); diff --git a/plugins/channeltx/udpsource/udpsourcebaseband.h b/plugins/channeltx/udpsource/udpsourcebaseband.h index 8dd7f7494..f88a6a365 100644 --- a/plugins/channeltx/udpsource/udpsourcebaseband.h +++ b/plugins/channeltx/udpsource/udpsourcebaseband.h @@ -122,6 +122,9 @@ public: void pull(const SampleVector::iterator& begin, unsigned int nbSamples); MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } //!< Get the queue for asynchronous inbound communication double getMagSq() const { return m_source.getMagSq(); } + double getInMagSq() const { return m_source.getInMagSq(); } + int32_t getBufferGauge() const { return m_source.getBufferGauge(); } + bool getSquelchOpen() const { return m_source.getSquelchOpen(); } int getChannelSampleRate() const; bool isSquelchOpen() const; void setSpectrumSink(BasebandSampleSink *spectrumSink) { m_source.setSpectrumSink(spectrumSink); }