mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 13:21:50 -05:00
DATV demod: removed useless DATVDemodBaseband::MsgConfigureChannelizer
This commit is contained in:
parent
cb78eb8a72
commit
fb3933c007
@ -24,7 +24,6 @@
|
||||
#include "datvdemodbaseband.h"
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(DATVDemodBaseband::MsgConfigureDATVDemodBaseband, Message)
|
||||
MESSAGE_CLASS_DEFINITION(DATVDemodBaseband::MsgConfigureChannelizer, Message)
|
||||
|
||||
DATVDemodBaseband::DATVDemodBaseband() :
|
||||
m_running(false),
|
||||
@ -130,18 +129,6 @@ bool DATVDemodBaseband::handleMessage(const Message& cmd)
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (MsgConfigureChannelizer::match(cmd))
|
||||
{
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
MsgConfigureChannelizer& cfg = (MsgConfigureChannelizer&) cmd;
|
||||
qDebug() << "DATVDemodBaseband::handleMessage: MsgConfigureChannelizer"
|
||||
<< "(requested) sinkSampleRate: " << cfg.getSinkSampleRate()
|
||||
<< "(requested) sinkCenterFrequency: " << cfg.getSinkCenterFrequency();
|
||||
m_channelizer->setChannelization(cfg.getSinkSampleRate(), cfg.getSinkCenterFrequency());
|
||||
m_sink.applyChannelSettings(m_channelizer->getChannelSampleRate(), m_channelizer->getChannelFrequencyOffset());
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (DSPSignalNotification::match(cmd))
|
||||
{
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
@ -56,28 +56,6 @@ public:
|
||||
{ }
|
||||
};
|
||||
|
||||
class MsgConfigureChannelizer : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
public:
|
||||
int getSinkSampleRate() const { return m_sinkSampleRate; }
|
||||
int getSinkCenterFrequency() const { return m_sinkCenterFrequency; }
|
||||
|
||||
static MsgConfigureChannelizer* create(int sinkSampleRate, int sinkCenterFrequency) {
|
||||
return new MsgConfigureChannelizer(sinkSampleRate, sinkCenterFrequency);
|
||||
}
|
||||
|
||||
private:
|
||||
int m_sinkSampleRate;
|
||||
int m_sinkCenterFrequency;
|
||||
|
||||
MsgConfigureChannelizer(int sinkSampleRate, int sinkCenterFrequency) :
|
||||
Message(),
|
||||
m_sinkSampleRate(sinkSampleRate),
|
||||
m_sinkCenterFrequency(sinkCenterFrequency)
|
||||
{ }
|
||||
};
|
||||
|
||||
DATVDemodBaseband();
|
||||
~DATVDemodBaseband();
|
||||
void reset();
|
||||
|
Loading…
Reference in New Issue
Block a user