mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
Windows: MSVC2017: fixed more attribute unused cases (1)
This commit is contained in:
parent
d910675587
commit
dc2f25a00b
@ -38,7 +38,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
DeviceSoapySDR();
|
DeviceSoapySDR();
|
||||||
DeviceSoapySDR(const DeviceSoapySDR&) {}
|
DeviceSoapySDR(const DeviceSoapySDR&) {}
|
||||||
DeviceSoapySDR& operator=(const DeviceSoapySDR& other __attribute__((unused))) { return *this; }
|
DeviceSoapySDR& operator=(const DeviceSoapySDR& other) { (void) other; return *this; }
|
||||||
~DeviceSoapySDR();
|
~DeviceSoapySDR();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -89,8 +89,9 @@ void ChannelAnalyzer::configure(MessageQueue* messageQueue,
|
|||||||
messageQueue->push(cmd);
|
messageQueue->push(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelAnalyzer::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly __attribute__((unused)))
|
void ChannelAnalyzer::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly)
|
||||||
{
|
{
|
||||||
|
(void) positiveOnly;
|
||||||
fftfilt::cmplx *sideband = 0;
|
fftfilt::cmplx *sideband = 0;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ public:
|
|||||||
virtual qint64 getCenterFrequency() const { return m_settings.m_frequency; }
|
virtual qint64 getCenterFrequency() const { return m_settings.m_frequency; }
|
||||||
|
|
||||||
virtual QByteArray serialize() const { return QByteArray(); }
|
virtual QByteArray serialize() const { return QByteArray(); }
|
||||||
virtual bool deserialize(const QByteArray& data __attribute__((unused))) { return false; }
|
virtual bool deserialize(const QByteArray& data) { (void) data; return false; }
|
||||||
|
|
||||||
static const QString m_channelIdURI;
|
static const QString m_channelIdURI;
|
||||||
static const QString m_channelId;
|
static const QString m_channelId;
|
||||||
|
@ -312,16 +312,18 @@ void ChannelAnalyzerGUI::on_rrcRolloff_valueChanged(int value)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelAnalyzerGUI::on_BW_valueChanged(int value __attribute__((unused)))
|
void ChannelAnalyzerGUI::on_BW_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
setFiltersUIBoundaries();
|
setFiltersUIBoundaries();
|
||||||
m_settings.m_bandwidth = ui->BW->value() * 100;
|
m_settings.m_bandwidth = ui->BW->value() * 100;
|
||||||
m_settings.m_lowCutoff = ui->lowCut->value() * 100;
|
m_settings.m_lowCutoff = ui->lowCut->value() * 100;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelAnalyzerGUI::on_lowCut_valueChanged(int value __attribute__((unused)))
|
void ChannelAnalyzerGUI::on_lowCut_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
setFiltersUIBoundaries();
|
setFiltersUIBoundaries();
|
||||||
m_settings.m_bandwidth = ui->BW->value() * 100;
|
m_settings.m_bandwidth = ui->BW->value() * 100;
|
||||||
m_settings.m_lowCutoff = ui->lowCut->value() * 100;
|
m_settings.m_lowCutoff = ui->lowCut->value() * 100;
|
||||||
@ -351,8 +353,10 @@ void ChannelAnalyzerGUI::on_ssb_toggled(bool checked)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelAnalyzerGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void ChannelAnalyzerGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelAnalyzerGUI::onMenuDialogCalled(const QPoint& p)
|
void ChannelAnalyzerGUI::onMenuDialogCalled(const QPoint& p)
|
||||||
|
@ -97,8 +97,9 @@ void DaemonSink::setNbBlocksFEC(int nbBlocksFEC)
|
|||||||
m_nbBlocksFEC = nbBlocksFEC;
|
m_nbBlocksFEC = nbBlocksFEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSink::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void DaemonSink::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
SampleVector::const_iterator it = begin;
|
SampleVector::const_iterator it = begin;
|
||||||
|
|
||||||
while (it != end)
|
while (it != end)
|
||||||
@ -238,8 +239,9 @@ void DaemonSink::stop()
|
|||||||
m_running = false;
|
m_running = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DaemonSink::handleMessage(const Message& cmd __attribute__((unused)))
|
bool DaemonSink::handleMessage(const Message& cmd)
|
||||||
{
|
{
|
||||||
|
(void) cmd;
|
||||||
if (DownChannelizer::MsgChannelizerNotification::match(cmd))
|
if (DownChannelizer::MsgChannelizerNotification::match(cmd))
|
||||||
{
|
{
|
||||||
DownChannelizer::MsgChannelizerNotification& notif = (DownChannelizer::MsgChannelizerNotification&) cmd;
|
DownChannelizer::MsgChannelizerNotification& notif = (DownChannelizer::MsgChannelizerNotification&) cmd;
|
||||||
@ -293,8 +295,9 @@ QByteArray DaemonSink::serialize() const
|
|||||||
return m_settings.serialize();
|
return m_settings.serialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DaemonSink::deserialize(const QByteArray& data __attribute__((unused)))
|
bool DaemonSink::deserialize(const QByteArray& data)
|
||||||
{
|
{
|
||||||
|
(void) data;
|
||||||
if (m_settings.deserialize(data))
|
if (m_settings.deserialize(data))
|
||||||
{
|
{
|
||||||
MsgConfigureDaemonSink *msg = MsgConfigureDaemonSink::create(m_settings, true);
|
MsgConfigureDaemonSink *msg = MsgConfigureDaemonSink::create(m_settings, true);
|
||||||
@ -341,8 +344,9 @@ void DaemonSink::applySettings(const DaemonSinkSettings& settings, bool force)
|
|||||||
|
|
||||||
int DaemonSink::webapiSettingsGet(
|
int DaemonSink::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setDaemonSinkSettings(new SWGSDRangel::SWGDaemonSinkSettings());
|
response.setDaemonSinkSettings(new SWGSDRangel::SWGDaemonSinkSettings());
|
||||||
response.getDaemonSinkSettings()->init();
|
response.getDaemonSinkSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -353,8 +357,9 @@ int DaemonSink::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
DaemonSinkSettings settings = m_settings;
|
DaemonSinkSettings settings = m_settings;
|
||||||
|
|
||||||
if (channelSettingsKeys.contains("nbFECBlocks"))
|
if (channelSettingsKeys.contains("nbFECBlocks"))
|
||||||
|
@ -48,8 +48,9 @@ qint64 DaemonSinkGUI::getCenterFrequency() const {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSinkGUI::setCenterFrequency(qint64 centerFrequency __attribute__((unused)))
|
void DaemonSinkGUI::setCenterFrequency(qint64 centerFrequency)
|
||||||
{
|
{
|
||||||
|
(void) centerFrequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSinkGUI::resetToDefaults()
|
void DaemonSinkGUI::resetToDefaults()
|
||||||
@ -207,8 +208,10 @@ void DaemonSinkGUI::handleSourceMessages()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSinkGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void DaemonSinkGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSinkGUI::onMenuDialogCalled(const QPoint &p)
|
void DaemonSinkGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
@ -249,8 +252,9 @@ void DaemonSinkGUI::on_dataPort_returnPressed()
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSinkGUI::on_dataApplyButton_clicked(bool checked __attribute__((unused)))
|
void DaemonSinkGUI::on_dataApplyButton_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
m_settings.m_dataAddress = ui->dataAddress->text();
|
m_settings.m_dataAddress = ui->dataAddress->text();
|
||||||
|
|
||||||
bool dataOk;
|
bool dataOk;
|
||||||
|
@ -98,8 +98,9 @@ AMDemod::~AMDemod()
|
|||||||
delete SSBFilter;
|
delete SSBFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void AMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
|
|
||||||
if (!m_running) {
|
if (!m_running) {
|
||||||
@ -502,8 +503,9 @@ bool AMDemod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int AMDemod::webapiSettingsGet(
|
int AMDemod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setAmDemodSettings(new SWGSDRangel::SWGAMDemodSettings());
|
response.setAmDemodSettings(new SWGSDRangel::SWGAMDemodSettings());
|
||||||
response.getAmDemodSettings()->init();
|
response.getAmDemodSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -514,8 +516,9 @@ int AMDemod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
AMDemodSettings settings = m_settings;
|
AMDemodSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -584,8 +587,9 @@ int AMDemod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int AMDemod::webapiReportGet(
|
int AMDemod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setAmDemodReport(new SWGSDRangel::SWGAMDemodReport());
|
response.setAmDemodReport(new SWGSDRangel::SWGAMDemodReport());
|
||||||
response.getAmDemodReport()->init();
|
response.getAmDemodReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -92,8 +92,9 @@ bool AMDemodGUI::deserialize(const QByteArray& data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AMDemodGUI::handleMessage(const Message& message __attribute__((unused)))
|
bool AMDemodGUI::handleMessage(const Message& message)
|
||||||
{
|
{
|
||||||
|
(void) message;
|
||||||
if (AMDemod::MsgConfigureAMDemod::match(message))
|
if (AMDemod::MsgConfigureAMDemod::match(message))
|
||||||
{
|
{
|
||||||
qDebug("AMDemodGUI::handleMessage: AMDemod::MsgConfigureAMDemod");
|
qDebug("AMDemodGUI::handleMessage: AMDemod::MsgConfigureAMDemod");
|
||||||
@ -192,8 +193,10 @@ void AMDemodGUI::on_audioMute_toggled(bool checked)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void AMDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
/*
|
/*
|
||||||
if((widget == ui->spectrumContainer) && (m_nfmDemod != NULL))
|
if((widget == ui->spectrumContainer) && (m_nfmDemod != NULL))
|
||||||
m_nfmDemod->setSpectrum(m_threadedSampleSink->getMessageQueue(), rollDown);
|
m_nfmDemod->setSpectrum(m_threadedSampleSink->getMessageQueue(), rollDown);
|
||||||
|
@ -164,8 +164,9 @@ void ATVDemod::configureRF(
|
|||||||
objMessageQueue->push(msgCmd);
|
objMessageQueue->push(msgCmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void ATVDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
float fltI;
|
float fltI;
|
||||||
float fltQ;
|
float fltQ;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
|
@ -229,7 +229,7 @@ public:
|
|||||||
virtual qint64 getCenterFrequency() const { return m_rfRunning.m_intFrequencyOffset; }
|
virtual qint64 getCenterFrequency() const { return m_rfRunning.m_intFrequencyOffset; }
|
||||||
|
|
||||||
virtual QByteArray serialize() const { return QByteArray(); }
|
virtual QByteArray serialize() const { return QByteArray(); }
|
||||||
virtual bool deserialize(const QByteArray& data __attribute__((unused))) { return false; }
|
virtual bool deserialize(const QByteArray& data) { (void) data; return false; }
|
||||||
|
|
||||||
void setTVScreen(TVScreen *objScreen); //!< set by the GUI
|
void setTVScreen(TVScreen *objScreen); //!< set by the GUI
|
||||||
int getSampleRate();
|
int getSampleRate();
|
||||||
|
@ -263,8 +263,10 @@ void ATVDemodGUI::handleSourceMessages()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void ATVDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* objParent) :
|
ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* objParent) :
|
||||||
@ -534,32 +536,37 @@ void ATVDemodGUI::on_halfImage_clicked()
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_nbLines_currentIndexChanged(int index __attribute__((unused)))
|
void ATVDemodGUI::on_nbLines_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
lineTimeUpdate();
|
lineTimeUpdate();
|
||||||
topTimeUpdate();
|
topTimeUpdate();
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_fps_currentIndexChanged(int index __attribute__((unused)))
|
void ATVDemodGUI::on_fps_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
lineTimeUpdate();
|
lineTimeUpdate();
|
||||||
topTimeUpdate();
|
topTimeUpdate();
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_standard_currentIndexChanged(int index __attribute__((unused)))
|
void ATVDemodGUI::on_standard_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_reset_clicked(bool checked __attribute__((unused)))
|
void ATVDemodGUI::on_reset_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
resetToDefaults();
|
resetToDefaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_modulation_currentIndexChanged(int index __attribute__((unused)))
|
void ATVDemodGUI::on_modulation_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
setRFFiltersSlidersRange(m_atvDemod->getEffectiveSampleRate());
|
setRFFiltersSlidersRange(m_atvDemod->getEffectiveSampleRate());
|
||||||
setChannelMarkerBandwidth();
|
setChannelMarkerBandwidth();
|
||||||
applyRFSettings();
|
applyRFSettings();
|
||||||
@ -579,15 +586,17 @@ void ATVDemodGUI::on_rfOppBW_valueChanged(int value)
|
|||||||
applyRFSettings();
|
applyRFSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_rfFiltering_toggled(bool checked __attribute__((unused)))
|
void ATVDemodGUI::on_rfFiltering_toggled(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
setRFFiltersSlidersRange(m_atvDemod->getEffectiveSampleRate());
|
setRFFiltersSlidersRange(m_atvDemod->getEffectiveSampleRate());
|
||||||
setChannelMarkerBandwidth();
|
setChannelMarkerBandwidth();
|
||||||
applyRFSettings();
|
applyRFSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_decimatorEnable_toggled(bool checked __attribute__((unused)))
|
void ATVDemodGUI::on_decimatorEnable_toggled(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
setChannelMarkerBandwidth();
|
setChannelMarkerBandwidth();
|
||||||
applyRFSettings();
|
applyRFSettings();
|
||||||
}
|
}
|
||||||
@ -610,8 +619,9 @@ void ATVDemodGUI::on_fmDeviation_valueChanged(int value)
|
|||||||
applyRFSettings();
|
applyRFSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemodGUI::on_screenTabWidget_currentChanged(int index __attribute__((unused)))
|
void ATVDemodGUI::on_screenTabWidget_currentChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,8 +113,9 @@ BFMDemod::~BFMDemod()
|
|||||||
delete m_rfFilter;
|
delete m_rfFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void BFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
Complex ci, cs, cr;
|
Complex ci, cs, cr;
|
||||||
fftfilt::cmplx *rf;
|
fftfilt::cmplx *rf;
|
||||||
int rf_out;
|
int rf_out;
|
||||||
@ -538,8 +539,9 @@ bool BFMDemod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int BFMDemod::webapiSettingsGet(
|
int BFMDemod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setBfmDemodSettings(new SWGSDRangel::SWGBFMDemodSettings());
|
response.setBfmDemodSettings(new SWGSDRangel::SWGBFMDemodSettings());
|
||||||
response.getBfmDemodSettings()->init();
|
response.getBfmDemodSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -550,8 +552,9 @@ int BFMDemod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
BFMDemodSettings settings = m_settings;
|
BFMDemodSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -618,8 +621,9 @@ int BFMDemod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int BFMDemod::webapiReportGet(
|
int BFMDemod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setBfmDemodReport(new SWGSDRangel::SWGBFMDemodReport());
|
response.setBfmDemodReport(new SWGSDRangel::SWGBFMDemodReport());
|
||||||
response.getBfmDemodReport()->init();
|
response.getBfmDemodReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -225,8 +225,9 @@ void BFMDemodGUI::on_rds_clicked()
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemodGUI::on_clearData_clicked(bool checked __attribute__((unused)))
|
void BFMDemodGUI::on_clearData_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
if (ui->rds->isChecked())
|
if (ui->rds->isChecked())
|
||||||
{
|
{
|
||||||
m_bfmDemod->getRDSParser().clearAllFields();
|
m_bfmDemod->getRDSParser().clearAllFields();
|
||||||
@ -288,26 +289,31 @@ void BFMDemodGUI::on_g14ProgServiceNames_currentIndexChanged(int _index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemodGUI::on_g00AltFrequenciesBox_activated(int index __attribute__((unused)))
|
void BFMDemodGUI::on_g00AltFrequenciesBox_activated(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
qint64 f = (qint64) ((ui->g00AltFrequenciesBox->currentText()).toDouble() * 1e6);
|
qint64 f = (qint64) ((ui->g00AltFrequenciesBox->currentText()).toDouble() * 1e6);
|
||||||
changeFrequency(f);
|
changeFrequency(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemodGUI::on_g14MappedFrequencies_activated(int index __attribute__((unused)))
|
void BFMDemodGUI::on_g14MappedFrequencies_activated(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
qint64 f = (qint64) ((ui->g14MappedFrequencies->currentText()).toDouble() * 1e6);
|
qint64 f = (qint64) ((ui->g14MappedFrequencies->currentText()).toDouble() * 1e6);
|
||||||
changeFrequency(f);
|
changeFrequency(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemodGUI::on_g14AltFrequencies_activated(int index __attribute__((unused)))
|
void BFMDemodGUI::on_g14AltFrequencies_activated(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
qint64 f = (qint64) ((ui->g14AltFrequencies->currentText()).toDouble() * 1e6);
|
qint64 f = (qint64) ((ui->g14AltFrequencies->currentText()).toDouble() * 1e6);
|
||||||
changeFrequency(f);
|
changeFrequency(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void BFMDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BFMDemodGUI::onMenuDialogCalled(const QPoint &p)
|
void BFMDemodGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
|
@ -66,8 +66,9 @@ RDSDemod::~RDSDemod()
|
|||||||
//delete m_socket;
|
//delete m_socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSDemod::setSampleRate(int srate __attribute__((unused))) /// FIXME: fix rate for now
|
void RDSDemod::setSampleRate(int srate) /// FIXME: fix rate for now
|
||||||
{
|
{
|
||||||
|
(void) srate;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RDSDemod::process(Real demod, bool& bit)
|
bool RDSDemod::process(Real demod, bool& bit)
|
||||||
|
@ -828,19 +828,25 @@ void RDSParser::decode_type4(unsigned int *group, bool B)
|
|||||||
//send_message(5,time);
|
//send_message(5,time);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type5(unsigned int *group __attribute__((unused)), bool B __attribute__((unused))) {
|
void RDSParser::decode_type5(unsigned int *group, bool B) {
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type5: type5 not implemented yet";
|
qDebug() << "RDSParser::decode_type5: type5 not implemented yet";
|
||||||
m_g5_updated = true;
|
m_g5_updated = true;
|
||||||
m_g5_count++;
|
m_g5_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type6(unsigned int *group __attribute__((unused)), bool B __attribute__((unused))) {
|
void RDSParser::decode_type6(unsigned int *group, bool B) {
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type6: type 6 not implemented yet";
|
qDebug() << "RDSParser::decode_type6: type 6 not implemented yet";
|
||||||
m_g6_updated = true;
|
m_g6_updated = true;
|
||||||
m_g6_count++;
|
m_g6_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type7(unsigned int *group __attribute__((unused)), bool B __attribute__((unused))) {
|
void RDSParser::decode_type7(unsigned int *group, bool B) {
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type7: type 7 not implemented yet";
|
qDebug() << "RDSParser::decode_type7: type 7 not implemented yet";
|
||||||
m_g7_updated = true;
|
m_g7_updated = true;
|
||||||
m_g7_count++;
|
m_g7_count++;
|
||||||
@ -971,29 +977,37 @@ void RDSParser::decode_type9(unsigned int *group, bool B){
|
|||||||
m_g9_count++;
|
m_g9_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type10(unsigned int *group __attribute__((unused)), bool B __attribute__((unused)))
|
void RDSParser::decode_type10(unsigned int *group, bool B)
|
||||||
{
|
{
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type10: type 10 not implemented yet";
|
qDebug() << "RDSParser::decode_type10: type 10 not implemented yet";
|
||||||
m_g10_updated = true;
|
m_g10_updated = true;
|
||||||
m_g10_count++;
|
m_g10_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type11(unsigned int *group __attribute__((unused)), bool B __attribute__((unused)))
|
void RDSParser::decode_type11(unsigned int *group, bool B)
|
||||||
{
|
{
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type11: type 11 not implemented yet";
|
qDebug() << "RDSParser::decode_type11: type 11 not implemented yet";
|
||||||
m_g11_updated = true;
|
m_g11_updated = true;
|
||||||
m_g11_count++;
|
m_g11_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type12(unsigned int *group __attribute__((unused)), bool B __attribute__((unused)))
|
void RDSParser::decode_type12(unsigned int *group, bool B)
|
||||||
{
|
{
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type12: type 12 not implemented yet";
|
qDebug() << "RDSParser::decode_type12: type 12 not implemented yet";
|
||||||
m_g12_updated = true;
|
m_g12_updated = true;
|
||||||
m_g12_count++;
|
m_g12_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type13(unsigned int *group __attribute__((unused)), bool B __attribute__((unused)))
|
void RDSParser::decode_type13(unsigned int *group, bool B)
|
||||||
{
|
{
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type13: type 13 not implemented yet";
|
qDebug() << "RDSParser::decode_type13: type 13 not implemented yet";
|
||||||
m_g13_updated = true;
|
m_g13_updated = true;
|
||||||
m_g13_count++;
|
m_g13_count++;
|
||||||
@ -1180,8 +1194,10 @@ void RDSParser::decode_type14(unsigned int *group, bool B)
|
|||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDSParser::decode_type15(unsigned int *group __attribute__((unused)), bool B __attribute__((unused)))
|
void RDSParser::decode_type15(unsigned int *group, bool B)
|
||||||
{
|
{
|
||||||
|
(void) group;
|
||||||
|
(void) B;
|
||||||
qDebug() << "RDSParser::decode_type5: type 15 not implemented yet";
|
qDebug() << "RDSParser::decode_type5: type 15 not implemented yet";
|
||||||
m_g15_updated = true;
|
m_g15_updated = true;
|
||||||
m_g15_count++;
|
m_g15_count++;
|
||||||
|
@ -764,8 +764,9 @@ void DATVDemod::InitDATVFramework()
|
|||||||
m_blnDVBInitialized=true;
|
m_blnDVBInitialized=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void DATVDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
float fltI;
|
float fltI;
|
||||||
float fltQ;
|
float fltQ;
|
||||||
leansdr::cf32 objIQ;
|
leansdr::cf32 objIQ;
|
||||||
|
@ -185,7 +185,7 @@ public:
|
|||||||
virtual qint64 getCenterFrequency() const { return m_objRunning.intCenterFrequency; }
|
virtual qint64 getCenterFrequency() const { return m_objRunning.intCenterFrequency; }
|
||||||
|
|
||||||
virtual QByteArray serialize() const { return QByteArray(); }
|
virtual QByteArray serialize() const { return QByteArray(); }
|
||||||
virtual bool deserialize(const QByteArray& data __attribute__((unused))) { return false; }
|
virtual bool deserialize(const QByteArray& data) { (void) data; return false; }
|
||||||
|
|
||||||
void configure(
|
void configure(
|
||||||
MessageQueue* objMessageQueue,
|
MessageQueue* objMessageQueue,
|
||||||
|
@ -219,8 +219,9 @@ bool DATVDemodGUI::deserialize(const QByteArray& arrData)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DATVDemodGUI::handleMessage(const Message& objMessage __attribute__((unused)))
|
bool DATVDemodGUI::handleMessage(const Message& objMessage)
|
||||||
{
|
{
|
||||||
|
(void) objMessage;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -241,8 +242,10 @@ void DATVDemodGUI::channelMarkerHighlightedByCursor()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DATVDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void DATVDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::onMenuDoubleClicked()
|
void DATVDemodGUI::onMenuDoubleClicked()
|
||||||
@ -526,13 +529,15 @@ void DATVDemodGUI::tick()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_cmbStandard_currentIndexChanged(const QString &arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_cmbStandard_currentIndexChanged(const QString &arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_cmbModulation_currentIndexChanged(const QString &arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_cmbModulation_currentIndexChanged(const QString &arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
QString strModulation;
|
QString strModulation;
|
||||||
QString strFEC;
|
QString strFEC;
|
||||||
|
|
||||||
@ -583,8 +588,9 @@ void DATVDemodGUI::on_cmbModulation_currentIndexChanged(const QString &arg1 __at
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_cmbFEC_currentIndexChanged(const QString &arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_cmbFEC_currentIndexChanged(const QString &arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
QString strFEC;
|
QString strFEC;
|
||||||
|
|
||||||
strFEC = ui->cmbFEC->currentText();
|
strFEC = ui->cmbFEC->currentText();
|
||||||
@ -647,13 +653,15 @@ void DATVDemodGUI::on_pushButton_2_clicked()
|
|||||||
resetToDefaults();
|
resetToDefaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_spiSymbolRate_valueChanged(int arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_spiSymbolRate_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_spiNotchFilters_valueChanged(int arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_spiNotchFilters_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -680,8 +688,9 @@ void DATVDemodGUI::on_pushButton_4_clicked()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_mouseEvent(QMouseEvent* obj __attribute__((unused)))
|
void DATVDemodGUI::on_mouseEvent(QMouseEvent* obj)
|
||||||
{
|
{
|
||||||
|
(void) obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString DATVDemodGUI::formatBytes(qint64 intBytes)
|
QString DATVDemodGUI::formatBytes(qint64 intBytes)
|
||||||
@ -703,8 +712,9 @@ QString DATVDemodGUI::formatBytes(qint64 intBytes)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DATVDemodGUI::on_StreamDataAvailable(int *intPackets __attribute__((unused)), int *intBytes, int *intPercent, qint64 *intTotalReceived)
|
void DATVDemodGUI::on_StreamDataAvailable(int *intPackets, int *intBytes, int *intPercent, qint64 *intTotalReceived)
|
||||||
{
|
{
|
||||||
|
(void) intPackets;
|
||||||
ui->lblStatus->setText(QString("Data: %1B").arg(formatBytes(*intTotalReceived)));
|
ui->lblStatus->setText(QString("Data: %1B").arg(formatBytes(*intTotalReceived)));
|
||||||
m_intLastDecodedData = *intTotalReceived;
|
m_intLastDecodedData = *intTotalReceived;
|
||||||
|
|
||||||
@ -721,18 +731,21 @@ void DATVDemodGUI::on_StreamDataAvailable(int *intPackets __attribute__((unused)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_spiBandwidth_valueChanged(int arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_spiBandwidth_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_deltaFrequency_changed(qint64 value __attribute__((unused)))
|
void DATVDemodGUI::on_deltaFrequency_changed(qint64 value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_rfBandwidth_changed(qint64 value __attribute__((unused)))
|
void DATVDemodGUI::on_rfBandwidth_changed(qint64 value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -789,19 +802,22 @@ void DATVDemodGUI::displayRRCParameters(bool blnVisible)
|
|||||||
ui->label_6->setVisible(blnVisible);
|
ui->label_6->setVisible(blnVisible);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_cmbFilter_currentIndexChanged(int index __attribute__((unused)))
|
void DATVDemodGUI::on_cmbFilter_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
displayRRCParameters((ui->cmbFilter->currentIndex()==2));
|
displayRRCParameters((ui->cmbFilter->currentIndex()==2));
|
||||||
|
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_spiRollOff_valueChanged(int arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_spiRollOff_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DATVDemodGUI::on_spiExcursion_valueChanged(int arg1 __attribute__((unused)))
|
void DATVDemodGUI::on_spiExcursion_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
@ -224,12 +224,16 @@ qint64 DATVideostream::readData(char *data, qint64 len)
|
|||||||
return (qint64)intEffectiveLen;
|
return (qint64)intEffectiveLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 DATVideostream::writeData(const char *data __attribute__((unused)), qint64 len __attribute__((unused)))
|
qint64 DATVideostream::writeData(const char *data, qint64 len)
|
||||||
{
|
{
|
||||||
|
(void) data;
|
||||||
|
(void) len;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 DATVideostream::readLineData(char *data __attribute__((unused)), qint64 maxSize __attribute__((unused)))
|
qint64 DATVideostream::readLineData(char *data, qint64 maxSize)
|
||||||
{
|
{
|
||||||
|
(void) data;
|
||||||
|
(void) maxSize;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -404,7 +404,9 @@ private:
|
|||||||
for (int im_pos = 0; im_pos <= 1; ++im_pos)
|
for (int im_pos = 0; im_pos <= 1; ++im_pos)
|
||||||
{
|
{
|
||||||
int re_neg = !re_pos;
|
int re_neg = !re_pos;
|
||||||
|
#if 0
|
||||||
int im_neg __attribute__((unused)) = !im_pos;
|
int im_neg __attribute__((unused)) = !im_pos;
|
||||||
|
#endif
|
||||||
int I, Q;
|
int I, Q;
|
||||||
switch (sync_id)
|
switch (sync_id)
|
||||||
{
|
{
|
||||||
|
@ -46,8 +46,9 @@ struct pipebuf_common
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void dump(std::size_t *total_bufs __attribute__((unused)))
|
virtual void dump(std::size_t *total_bufs)
|
||||||
{
|
{
|
||||||
|
(void) total_bufs;
|
||||||
}
|
}
|
||||||
|
|
||||||
pipebuf_common(const char *_name) :
|
pipebuf_common(const char *_name) :
|
||||||
|
@ -329,9 +329,10 @@ private:
|
|||||||
template<typename Tin, typename Tout>
|
template<typename Tin, typename Tout>
|
||||||
struct serializer: runnable
|
struct serializer: runnable
|
||||||
{
|
{
|
||||||
serializer(scheduler *sch __attribute__((unused)), pipebuf<Tin> &_in, pipebuf<Tout> &_out) :
|
serializer(scheduler *sch, pipebuf<Tin> &_in, pipebuf<Tout> &_out) :
|
||||||
nin(max((size_t) 1, sizeof(Tin) / sizeof(Tout))), nout(max((size_t) 1, sizeof(Tout) / sizeof(Tin))), in(_in), out(_out, nout)
|
nin(max((size_t) 1, sizeof(Tin) / sizeof(Tout))), nout(max((size_t) 1, sizeof(Tout) / sizeof(Tin))), in(_in), out(_out, nout)
|
||||||
{
|
{
|
||||||
|
(void) sch;
|
||||||
if (nin * sizeof(Tin) != nout * sizeof(Tout))
|
if (nin * sizeof(Tin) != nout * sizeof(Tout))
|
||||||
{
|
{
|
||||||
fail("serializer::serializer", "incompatible sizes");
|
fail("serializer::serializer", "incompatible sizes");
|
||||||
|
@ -700,8 +700,9 @@ struct sampler_interface
|
|||||||
{
|
{
|
||||||
virtual complex<T> interp(const complex<T> *pin, float mu, float phase) = 0;
|
virtual complex<T> interp(const complex<T> *pin, float mu, float phase) = 0;
|
||||||
|
|
||||||
virtual void update_freq(float freqw __attribute__((unused)))
|
virtual void update_freq(float freqw)
|
||||||
{
|
{
|
||||||
|
(void) freqw;
|
||||||
} // 65536 = 1 Hz
|
} // 65536 = 1 Hz
|
||||||
|
|
||||||
virtual int readahead()
|
virtual int readahead()
|
||||||
@ -725,8 +726,9 @@ struct nearest_sampler: sampler_interface<T>
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
complex<T> interp(const complex<T> *pin, float mu __attribute__((unused)), float phase)
|
complex<T> interp(const complex<T> *pin, float mu, float phase)
|
||||||
{
|
{
|
||||||
|
(void) mu;
|
||||||
return pin[0] * trig.expi(-phase);
|
return pin[0] * trig.expi(-phase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,8 +112,9 @@ void DSDDemod::configureMyPosition(MessageQueue* messageQueue, float myLatitude,
|
|||||||
messageQueue->push(cmd);
|
messageQueue->push(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
int samplesPerSymbol = m_dsdDecoder.getSamplesPerSymbol();
|
int samplesPerSymbol = m_dsdDecoder.getSamplesPerSymbol();
|
||||||
|
|
||||||
@ -767,8 +768,9 @@ void DSDDemod::formatStatusText()
|
|||||||
|
|
||||||
int DSDDemod::webapiSettingsGet(
|
int DSDDemod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setDsdDemodSettings(new SWGSDRangel::SWGDSDDemodSettings());
|
response.setDsdDemodSettings(new SWGSDRangel::SWGDSDDemodSettings());
|
||||||
response.getDsdDemodSettings()->init();
|
response.getDsdDemodSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -779,8 +781,9 @@ int DSDDemod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
DSDDemodSettings settings = m_settings;
|
DSDDemodSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -877,8 +880,9 @@ int DSDDemod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int DSDDemod::webapiReportGet(
|
int DSDDemod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setDsdDemodReport(new SWGSDRangel::SWGDSDDemodReport());
|
response.setDsdDemodReport(new SWGSDRangel::SWGDSDDemodReport());
|
||||||
response.getDsdDemodReport()->init();
|
response.getDsdDemodReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -264,8 +264,10 @@ void DSDDemodGUI::on_symbolPLLLock_toggled(bool checked)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DSDDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void DSDDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DSDDemodGUI::onMenuDialogCalled(const QPoint &p)
|
void DSDDemodGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
|
@ -251,8 +251,9 @@ int LoRaDemod::detect(Complex c, Complex a)
|
|||||||
return m_result;
|
return m_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoRaDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool pO __attribute__((unused)))
|
void LoRaDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool pO)
|
||||||
{
|
{
|
||||||
|
(void) pO;
|
||||||
int newangle;
|
int newangle;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
|
|
||||||
|
@ -70,8 +70,9 @@ bool LoRaDemodGUI::deserialize(const QByteArray& data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoRaDemodGUI::handleMessage(const Message& message __attribute__((unused)))
|
bool LoRaDemodGUI::handleMessage(const Message& message)
|
||||||
{
|
{
|
||||||
|
(void) message;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,12 +98,15 @@ void LoRaDemodGUI::on_BW_valueChanged(int value)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoRaDemodGUI::on_Spread_valueChanged(int value __attribute__((unused)))
|
void LoRaDemodGUI::on_Spread_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoRaDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void LoRaDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
LoRaDemodGUI::LoRaDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent) :
|
LoRaDemodGUI::LoRaDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent) :
|
||||||
|
@ -137,8 +137,9 @@ Real angleDist(Real a, Real b)
|
|||||||
return dist;
|
return dist;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void NFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
|
|
||||||
if (!m_running) {
|
if (!m_running) {
|
||||||
@ -585,8 +586,9 @@ bool NFMDemod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int NFMDemod::webapiSettingsGet(
|
int NFMDemod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setNfmDemodSettings(new SWGSDRangel::SWGNFMDemodSettings());
|
response.setNfmDemodSettings(new SWGSDRangel::SWGNFMDemodSettings());
|
||||||
response.getNfmDemodSettings()->init();
|
response.getNfmDemodSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -597,8 +599,9 @@ int NFMDemod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
NFMDemodSettings settings = m_settings;
|
NFMDemodSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -670,8 +673,9 @@ int NFMDemod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int NFMDemod::webapiReportGet(
|
int NFMDemod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setNfmDemodReport(new SWGSDRangel::SWGNFMDemodReport());
|
response.setNfmDemodReport(new SWGSDRangel::SWGNFMDemodReport());
|
||||||
response.getNfmDemodReport()->init();
|
response.getNfmDemodReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -214,8 +214,10 @@ void NFMDemodGUI::on_ctcss_currentIndexChanged(int index)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NFMDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void NFMDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
/*
|
/*
|
||||||
if((widget == ui->spectrumContainer) && (m_nfmDemod != NULL))
|
if((widget == ui->spectrumContainer) && (m_nfmDemod != NULL))
|
||||||
m_nfmDemod->setSpectrum(m_threadedSampleSink->getMessageQueue(), rollDown);
|
m_nfmDemod->setSpectrum(m_threadedSampleSink->getMessageQueue(), rollDown);
|
||||||
|
@ -144,8 +144,9 @@ void SSBDemod::configure(MessageQueue* messageQueue,
|
|||||||
messageQueue->push(cmd);
|
messageQueue->push(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly __attribute__((unused)))
|
void SSBDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly)
|
||||||
{
|
{
|
||||||
|
(void) positiveOnly;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
fftfilt::cmplx *sideband;
|
fftfilt::cmplx *sideband;
|
||||||
int n_out;
|
int n_out;
|
||||||
@ -585,8 +586,9 @@ bool SSBDemod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int SSBDemod::webapiSettingsGet(
|
int SSBDemod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setSsbDemodSettings(new SWGSDRangel::SWGSSBDemodSettings());
|
response.setSsbDemodSettings(new SWGSDRangel::SWGSSBDemodSettings());
|
||||||
response.getSsbDemodSettings()->init();
|
response.getSsbDemodSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -597,8 +599,9 @@ int SSBDemod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
SSBDemodSettings settings = m_settings;
|
SSBDemodSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -680,8 +683,9 @@ int SSBDemod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int SSBDemod::webapiReportGet(
|
int SSBDemod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setSsbDemodReport(new SWGSDRangel::SWGSSBDemodReport());
|
response.setSsbDemodReport(new SWGSDRangel::SWGSSBDemodReport());
|
||||||
response.getSsbDemodReport()->init();
|
response.getSsbDemodReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -156,13 +156,15 @@ void SSBDemodGUI::on_deltaFrequency_changed(qint64 value)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBDemodGUI::on_BW_valueChanged(int value __attribute__((unused)))
|
void SSBDemodGUI::on_BW_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
applyBandwidths(5 - ui->spanLog2->value());
|
applyBandwidths(5 - ui->spanLog2->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBDemodGUI::on_lowCut_valueChanged(int value __attribute__((unused)))
|
void SSBDemodGUI::on_lowCut_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
applyBandwidths(5 - ui->spanLog2->value());
|
applyBandwidths(5 - ui->spanLog2->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,8 +226,9 @@ void SSBDemodGUI::on_spanLog2_valueChanged(int value)
|
|||||||
applyBandwidths(5 - ui->spanLog2->value());
|
applyBandwidths(5 - ui->spanLog2->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBDemodGUI::on_flipSidebands_clicked(bool checked __attribute__((unused)))
|
void SSBDemodGUI::on_flipSidebands_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
int bwValue = ui->BW->value();
|
int bwValue = ui->BW->value();
|
||||||
int lcValue = ui->lowCut->value();
|
int lcValue = ui->lowCut->value();
|
||||||
ui->BW->setValue(-bwValue);
|
ui->BW->setValue(-bwValue);
|
||||||
@ -248,8 +251,10 @@ void SSBDemodGUI::onMenuDialogCalled(const QPoint &p)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void SSBDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
SSBDemodGUI::SSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent) :
|
SSBDemodGUI::SSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent) :
|
||||||
|
@ -87,8 +87,9 @@ WFMDemod::~WFMDemod()
|
|||||||
delete m_rfFilter;
|
delete m_rfFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst __attribute__((unused)))
|
void WFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool firstOfBurst)
|
||||||
{
|
{
|
||||||
|
(void) firstOfBurst;
|
||||||
Complex ci;
|
Complex ci;
|
||||||
fftfilt::cmplx *rf;
|
fftfilt::cmplx *rf;
|
||||||
int rf_out;
|
int rf_out;
|
||||||
@ -382,8 +383,9 @@ bool WFMDemod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int WFMDemod::webapiSettingsGet(
|
int WFMDemod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setWfmDemodSettings(new SWGSDRangel::SWGWFMDemodSettings());
|
response.setWfmDemodSettings(new SWGSDRangel::SWGWFMDemodSettings());
|
||||||
response.getWfmDemodSettings()->init();
|
response.getWfmDemodSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -394,8 +396,9 @@ int WFMDemod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
WFMDemodSettings settings = m_settings;
|
WFMDemodSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -453,8 +456,9 @@ int WFMDemod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int WFMDemod::webapiReportGet(
|
int WFMDemod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setWfmDemodReport(new SWGSDRangel::SWGWFMDemodReport());
|
response.setWfmDemodReport(new SWGSDRangel::SWGWFMDemodReport());
|
||||||
response.getWfmDemodReport()->init();
|
response.getWfmDemodReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -75,8 +75,9 @@ bool WFMDemodGUI::deserialize(const QByteArray& data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WFMDemodGUI::handleMessage(const Message& message __attribute__((unused)))
|
bool WFMDemodGUI::handleMessage(const Message& message)
|
||||||
{
|
{
|
||||||
|
(void) message;
|
||||||
if (WFMDemod::MsgConfigureWFMDemod::match(message))
|
if (WFMDemod::MsgConfigureWFMDemod::match(message))
|
||||||
{
|
{
|
||||||
qDebug("WFMDemodGUI::handleMessage: WFMDemod::MsgConfigureWFMDemod");
|
qDebug("WFMDemodGUI::handleMessage: WFMDemod::MsgConfigureWFMDemod");
|
||||||
@ -159,8 +160,10 @@ void WFMDemodGUI::on_audioMute_toggled(bool checked)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WFMDemodGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void WFMDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WFMDemodGUI::onMenuDialogCalled(const QPoint &p)
|
void WFMDemodGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
|
@ -644,8 +644,9 @@ bool UDPSink::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int UDPSink::webapiSettingsGet(
|
int UDPSink::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setUdpSinkSettings(new SWGSDRangel::SWGUDPSinkSettings());
|
response.setUdpSinkSettings(new SWGSDRangel::SWGUDPSinkSettings());
|
||||||
response.getUdpSinkSettings()->init();
|
response.getUdpSinkSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -656,8 +657,9 @@ int UDPSink::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
UDPSinkSettings settings = m_settings;
|
UDPSinkSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -746,8 +748,9 @@ int UDPSink::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int UDPSink::webapiReportGet(
|
int UDPSink::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setUdpSinkReport(new SWGSDRangel::SWGUDPSinkReport());
|
response.setUdpSinkReport(new SWGSDRangel::SWGUDPSinkReport());
|
||||||
response.getUdpSinkReport()->init();
|
response.getUdpSinkReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -472,8 +472,9 @@ void UDPSinkGUI::on_inputUDPAudioPort_editingFinished()
|
|||||||
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
|
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
|
||||||
}
|
}
|
||||||
|
|
||||||
void UDPSinkGUI::on_sampleRate_textEdited(const QString& arg1 __attribute__((unused)))
|
void UDPSinkGUI::on_sampleRate_textEdited(const QString& arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
bool ok;
|
bool ok;
|
||||||
Real outputSampleRate = ui->sampleRate->text().toDouble(&ok);
|
Real outputSampleRate = ui->sampleRate->text().toDouble(&ok);
|
||||||
|
|
||||||
@ -491,8 +492,9 @@ void UDPSinkGUI::on_sampleRate_textEdited(const QString& arg1 __attribute__((unu
|
|||||||
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
|
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
|
||||||
}
|
}
|
||||||
|
|
||||||
void UDPSinkGUI::on_rfBandwidth_textEdited(const QString& arg1 __attribute__((unused)))
|
void UDPSinkGUI::on_rfBandwidth_textEdited(const QString& arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
bool ok;
|
bool ok;
|
||||||
Real rfBandwidth = ui->rfBandwidth->text().toDouble(&ok);
|
Real rfBandwidth = ui->rfBandwidth->text().toDouble(&ok);
|
||||||
|
|
||||||
@ -512,8 +514,9 @@ void UDPSinkGUI::on_rfBandwidth_textEdited(const QString& arg1 __attribute__((un
|
|||||||
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
|
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
|
||||||
}
|
}
|
||||||
|
|
||||||
void UDPSinkGUI::on_fmDeviation_textEdited(const QString& arg1 __attribute__((unused)))
|
void UDPSinkGUI::on_fmDeviation_textEdited(const QString& arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
bool ok;
|
bool ok;
|
||||||
int fmDeviation = ui->fmDeviation->text().toInt(&ok);
|
int fmDeviation = ui->fmDeviation->text().toInt(&ok);
|
||||||
|
|
||||||
|
@ -74,8 +74,9 @@ void DaemonSource::pull(Sample& sample)
|
|||||||
m_dataReadQueue.readSample(sample, true); // true is scale for Tx
|
m_dataReadQueue.readSample(sample, true); // true is scale for Tx
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSource::pullAudio(int nbSamples __attribute__((unused)))
|
void DaemonSource::pullAudio(int nbSamples)
|
||||||
{
|
{
|
||||||
|
(void) nbSamples;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSource::start()
|
void DaemonSource::start()
|
||||||
@ -174,8 +175,9 @@ QByteArray DaemonSource::serialize() const
|
|||||||
return m_settings.serialize();
|
return m_settings.serialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DaemonSource::deserialize(const QByteArray& data __attribute__((unused)))
|
bool DaemonSource::deserialize(const QByteArray& data)
|
||||||
{
|
{
|
||||||
|
(void) data;
|
||||||
if (m_settings.deserialize(data))
|
if (m_settings.deserialize(data))
|
||||||
{
|
{
|
||||||
MsgConfigureDaemonSource *msg = MsgConfigureDaemonSource::create(m_settings, true);
|
MsgConfigureDaemonSource *msg = MsgConfigureDaemonSource::create(m_settings, true);
|
||||||
@ -215,8 +217,9 @@ void DaemonSource::applySettings(const DaemonSourceSettings& settings, bool forc
|
|||||||
m_settings = settings;
|
m_settings = settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSource::handleDataBlock(SDRDaemonDataBlock* dataBlock __attribute__((unused)))
|
void DaemonSource::handleDataBlock(SDRDaemonDataBlock* dataBlock)
|
||||||
{
|
{
|
||||||
|
(void) dataBlock;
|
||||||
if (dataBlock->m_rxControlBlock.m_blockCount < SDRDaemonNbOrginalBlocks)
|
if (dataBlock->m_rxControlBlock.m_blockCount < SDRDaemonNbOrginalBlocks)
|
||||||
{
|
{
|
||||||
qWarning("DaemonSource::handleDataBlock: incomplete data block: not processing");
|
qWarning("DaemonSource::handleDataBlock: incomplete data block: not processing");
|
||||||
@ -352,8 +355,9 @@ uint32_t DaemonSource::calculateDataReadQueueSize(int sampleRate)
|
|||||||
|
|
||||||
int DaemonSource::webapiSettingsGet(
|
int DaemonSource::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setDaemonSourceSettings(new SWGSDRangel::SWGDaemonSourceSettings());
|
response.setDaemonSourceSettings(new SWGSDRangel::SWGDaemonSourceSettings());
|
||||||
response.getDaemonSourceSettings()->init();
|
response.getDaemonSourceSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -364,8 +368,9 @@ int DaemonSource::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
DaemonSourceSettings settings = m_settings;
|
DaemonSourceSettings settings = m_settings;
|
||||||
|
|
||||||
if (channelSettingsKeys.contains("dataAddress")) {
|
if (channelSettingsKeys.contains("dataAddress")) {
|
||||||
@ -405,8 +410,9 @@ int DaemonSource::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int DaemonSource::webapiReportGet(
|
int DaemonSource::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setDaemonSourceReport(new SWGSDRangel::SWGDaemonSourceReport());
|
response.setDaemonSourceReport(new SWGSDRangel::SWGDaemonSourceReport());
|
||||||
response.getDaemonSourceReport()->init();
|
response.getDaemonSourceReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -48,8 +48,9 @@ qint64 DaemonSourceGUI::getCenterFrequency() const {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSourceGUI::setCenterFrequency(qint64 centerFrequency __attribute__((unused)))
|
void DaemonSourceGUI::setCenterFrequency(qint64 centerFrequency)
|
||||||
{
|
{
|
||||||
|
(void) centerFrequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSourceGUI::resetToDefaults()
|
void DaemonSourceGUI::resetToDefaults()
|
||||||
@ -152,7 +153,7 @@ bool DaemonSourceGUI::handleMessage(const Message& message)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DaemonSourceGUI::DaemonSourceGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx __attribute__((unused)), QWidget* parent) :
|
DaemonSourceGUI::DaemonSourceGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget* parent) :
|
||||||
RollupWidget(parent),
|
RollupWidget(parent),
|
||||||
ui(new Ui::DaemonSourceGUI),
|
ui(new Ui::DaemonSourceGUI),
|
||||||
m_pluginAPI(pluginAPI),
|
m_pluginAPI(pluginAPI),
|
||||||
@ -166,6 +167,7 @@ DaemonSourceGUI::DaemonSourceGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet,
|
|||||||
m_resetCounts(true),
|
m_resetCounts(true),
|
||||||
m_tickCount(0)
|
m_tickCount(0)
|
||||||
{
|
{
|
||||||
|
(void) channelTx;
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
||||||
@ -262,8 +264,10 @@ void DaemonSourceGUI::handleSourceMessages()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSourceGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void DaemonSourceGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSourceGUI::onMenuDialogCalled(const QPoint &p)
|
void DaemonSourceGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
@ -304,8 +308,9 @@ void DaemonSourceGUI::on_dataPort_returnPressed()
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSourceGUI::on_dataApplyButton_clicked(bool checked __attribute__((unused)))
|
void DaemonSourceGUI::on_dataApplyButton_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
m_settings.m_dataAddress = ui->dataAddress->text();
|
m_settings.m_dataAddress = ui->dataAddress->text();
|
||||||
|
|
||||||
bool dataOk;
|
bool dataOk;
|
||||||
@ -319,8 +324,9 @@ void DaemonSourceGUI::on_dataApplyButton_clicked(bool checked __attribute__((unu
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonSourceGUI::on_eventCountsReset_clicked(bool checked __attribute__((unused)))
|
void DaemonSourceGUI::on_eventCountsReset_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
m_countUnrecoverable = 0;
|
m_countUnrecoverable = 0;
|
||||||
m_countRecovered = 0;
|
m_countRecovered = 0;
|
||||||
m_time.start();
|
m_time.start();
|
||||||
|
@ -513,8 +513,9 @@ bool AMMod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int AMMod::webapiSettingsGet(
|
int AMMod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setAmModSettings(new SWGSDRangel::SWGAMModSettings());
|
response.setAmModSettings(new SWGSDRangel::SWGAMModSettings());
|
||||||
response.getAmModSettings()->init();
|
response.getAmModSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -525,8 +526,9 @@ int AMMod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
AMModSettings settings = m_settings;
|
AMModSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -623,8 +625,9 @@ int AMMod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int AMMod::webapiReportGet(
|
int AMMod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setAmModReport(new SWGSDRangel::SWGAMModReport());
|
response.setAmModReport(new SWGSDRangel::SWGAMModReport());
|
||||||
response.getAmModReport()->init();
|
response.getAmModReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -248,8 +248,9 @@ void AMModGUI::on_navTimeSlider_valueChanged(int value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMModGUI::on_showFileDialog_clicked(bool checked __attribute__((unused)))
|
void AMModGUI::on_showFileDialog_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog);
|
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog);
|
||||||
|
|
||||||
@ -269,8 +270,10 @@ void AMModGUI::configureFileName()
|
|||||||
m_amMod->getInputMessageQueue()->push(message);
|
m_amMod->getInputMessageQueue()->push(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMModGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void AMModGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMModGUI::onMenuDialogCalled(const QPoint &p)
|
void AMModGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
@ -363,8 +366,9 @@ void AMModGUI::blockApplySettings(bool block)
|
|||||||
m_doApplySettings = !block;
|
m_doApplySettings = !block;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMModGUI::applySettings(bool force __attribute((unused)))
|
void AMModGUI::applySettings(bool force)
|
||||||
{
|
{
|
||||||
|
(void) force;
|
||||||
if (m_doApplySettings)
|
if (m_doApplySettings)
|
||||||
{
|
{
|
||||||
setTitleColor(m_channelMarker.getColor());
|
setTitleColor(m_channelMarker.getColor());
|
||||||
|
@ -116,8 +116,9 @@ ATVMod::~ATVMod()
|
|||||||
delete[] m_DSBFilterBuffer;
|
delete[] m_DSBFilterBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVMod::pullAudio(int nbSamples __attribute__((unused)))
|
void ATVMod::pullAudio(int nbSamples)
|
||||||
{
|
{
|
||||||
|
(void) nbSamples;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVMod::pull(Sample& sample)
|
void ATVMod::pull(Sample& sample)
|
||||||
@ -1185,8 +1186,9 @@ bool ATVMod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int ATVMod::webapiSettingsGet(
|
int ATVMod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setAtvModSettings(new SWGSDRangel::SWGATVModSettings());
|
response.setAtvModSettings(new SWGSDRangel::SWGATVModSettings());
|
||||||
response.getAtvModSettings()->init();
|
response.getAtvModSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -1197,8 +1199,9 @@ int ATVMod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
ATVModSettings settings = m_settings;
|
ATVModSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -1319,8 +1322,9 @@ int ATVMod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int ATVMod::webapiReportGet(
|
int ATVMod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setAtvModReport(new SWGSDRangel::SWGATVModReport());
|
response.setAtvModReport(new SWGSDRangel::SWGATVModReport());
|
||||||
response.getAtvModReport()->init();
|
response.getAtvModReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -444,14 +444,16 @@ void ATVModGUI::setChannelMarkerBandwidth()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::on_nbLines_currentIndexChanged(int index __attribute__((unused)))
|
void ATVModGUI::on_nbLines_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
m_settings.m_nbLines = getNbLines();
|
m_settings.m_nbLines = getNbLines();
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::on_fps_currentIndexChanged(int index __attribute__((unused)))
|
void ATVModGUI::on_fps_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
m_settings.m_fps = getFPS();
|
m_settings.m_fps = getFPS();
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
@ -494,8 +496,9 @@ void ATVModGUI::on_forceDecimator_toggled(bool checked)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::on_imageFileDialog_clicked(bool checked __attribute__((unused)))
|
void ATVModGUI::on_imageFileDialog_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open image file"), ".", tr("Image Files (*.png *.jpg *.bmp *.gif *.tiff)"), 0, QFileDialog::DontUseNativeDialog);
|
tr("Open image file"), ".", tr("Image Files (*.png *.jpg *.bmp *.gif *.tiff)"), 0, QFileDialog::DontUseNativeDialog);
|
||||||
|
|
||||||
@ -507,8 +510,9 @@ void ATVModGUI::on_imageFileDialog_clicked(bool checked __attribute__((unused)))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::on_videoFileDialog_clicked(bool checked __attribute__((unused)))
|
void ATVModGUI::on_videoFileDialog_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open video file"), ".", tr("Video Files (*.avi *.mpg *.mp4 *.mov *.m4v *.mkv *.vob *.wmv)"), 0, QFileDialog::DontUseNativeDialog);
|
tr("Open video file"), ".", tr("Video Files (*.avi *.mpg *.mp4 *.mov *.m4v *.mkv *.vob *.wmv)"), 0, QFileDialog::DontUseNativeDialog);
|
||||||
|
|
||||||
@ -580,8 +584,9 @@ void ATVModGUI::on_overlayTextShow_toggled(bool checked)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::on_overlayText_textEdited(const QString& arg1 __attribute__((unused)))
|
void ATVModGUI::on_overlayText_textEdited(const QString& arg1)
|
||||||
{
|
{
|
||||||
|
(void) arg1;
|
||||||
m_settings.m_overlayText = arg1;
|
m_settings.m_overlayText = arg1;
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
@ -600,8 +605,10 @@ void ATVModGUI::configureVideoFileName()
|
|||||||
m_atvMod->getInputMessageQueue()->push(message);
|
m_atvMod->getInputMessageQueue()->push(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void ATVModGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVModGUI::onMenuDialogCalled(const QPoint &p)
|
void ATVModGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
|
@ -553,8 +553,9 @@ bool NFMMod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int NFMMod::webapiSettingsGet(
|
int NFMMod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setNfmModSettings(new SWGSDRangel::SWGNFMModSettings());
|
response.setNfmModSettings(new SWGSDRangel::SWGNFMModSettings());
|
||||||
response.getNfmModSettings()->init();
|
response.getNfmModSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -565,8 +566,9 @@ int NFMMod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
NFMModSettings settings = m_settings;
|
NFMModSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -673,8 +675,9 @@ int NFMMod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int NFMMod::webapiReportGet(
|
int NFMMod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setNfmModReport(new SWGSDRangel::SWGNFMModReport());
|
response.setNfmModReport(new SWGSDRangel::SWGNFMModReport());
|
||||||
response.getNfmModReport()->init();
|
response.getNfmModReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -252,8 +252,9 @@ void NFMModGUI::on_navTimeSlider_valueChanged(int value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NFMModGUI::on_showFileDialog_clicked(bool checked __attribute__((unused)))
|
void NFMModGUI::on_showFileDialog_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog);
|
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog);
|
||||||
|
|
||||||
@ -286,8 +287,10 @@ void NFMModGUI::configureFileName()
|
|||||||
m_nfmMod->getInputMessageQueue()->push(message);
|
m_nfmMod->getInputMessageQueue()->push(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NFMModGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void NFMModGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NFMModGUI::onMenuDialogCalled(const QPoint &p)
|
void NFMModGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
|
@ -872,8 +872,9 @@ bool SSBMod::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
int SSBMod::webapiSettingsGet(
|
int SSBMod::webapiSettingsGet(
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setSsbModSettings(new SWGSDRangel::SWGSSBModSettings());
|
response.setSsbModSettings(new SWGSDRangel::SWGSSBModSettings());
|
||||||
response.getSsbModSettings()->init();
|
response.getSsbModSettings()->init();
|
||||||
webapiFormatChannelSettings(response, m_settings);
|
webapiFormatChannelSettings(response, m_settings);
|
||||||
@ -884,8 +885,9 @@ int SSBMod::webapiSettingsPutPatch(
|
|||||||
bool force,
|
bool force,
|
||||||
const QStringList& channelSettingsKeys,
|
const QStringList& channelSettingsKeys,
|
||||||
SWGSDRangel::SWGChannelSettings& response,
|
SWGSDRangel::SWGChannelSettings& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
SSBModSettings settings = m_settings;
|
SSBModSettings settings = m_settings;
|
||||||
bool frequencyOffsetChanged = false;
|
bool frequencyOffsetChanged = false;
|
||||||
|
|
||||||
@ -1018,8 +1020,9 @@ int SSBMod::webapiSettingsPutPatch(
|
|||||||
|
|
||||||
int SSBMod::webapiReportGet(
|
int SSBMod::webapiReportGet(
|
||||||
SWGSDRangel::SWGChannelReport& response,
|
SWGSDRangel::SWGChannelReport& response,
|
||||||
QString& errorMessage __attribute__((unused)))
|
QString& errorMessage)
|
||||||
{
|
{
|
||||||
|
(void) errorMessage;
|
||||||
response.setSsbModReport(new SWGSDRangel::SWGSSBModReport());
|
response.setSsbModReport(new SWGSDRangel::SWGSSBModReport());
|
||||||
response.getSsbModReport()->init();
|
response.getSsbModReport()->init();
|
||||||
webapiFormatChannelReport(response);
|
webapiFormatChannelReport(response);
|
||||||
|
@ -173,8 +173,9 @@ void SSBModGUI::on_deltaFrequency_changed(qint64 value)
|
|||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBModGUI::on_flipSidebands_clicked(bool checked __attribute__((unused)))
|
void SSBModGUI::on_flipSidebands_clicked(bool checked)
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
int bwValue = ui->BW->value();
|
int bwValue = ui->BW->value();
|
||||||
int lcValue = ui->lowCut->value();
|
int lcValue = ui->lowCut->value();
|
||||||
ui->BW->setValue(-bwValue);
|
ui->BW->setValue(-bwValue);
|
||||||
@ -208,13 +209,15 @@ void SSBModGUI::on_spanLog2_valueChanged(int value)
|
|||||||
applyBandwidths(5 - value);
|
applyBandwidths(5 - value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBModGUI::on_BW_valueChanged(int value __attribute__((unused)))
|
void SSBModGUI::on_BW_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
applyBandwidths(5 - ui->spanLog2->value());
|
applyBandwidths(5 - ui->spanLog2->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBModGUI::on_lowCut_valueChanged(int value __attribute__((unused)))
|
void SSBModGUI::on_lowCut_valueChanged(int value)
|
||||||
{
|
{
|
||||||
|
(void) value;
|
||||||
applyBandwidths(5 - ui->spanLog2->value());
|
applyBandwidths(5 - ui->spanLog2->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -340,6 +343,7 @@ void SSBModGUI::on_navTimeSlider_valueChanged(int value)
|
|||||||
|
|
||||||
void SSBModGUI::on_showFileDialog_clicked(bool checked __attribute__((unused)))
|
void SSBModGUI::on_showFileDialog_clicked(bool checked __attribute__((unused)))
|
||||||
{
|
{
|
||||||
|
(void) checked;
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog);
|
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog);
|
||||||
|
|
||||||
@ -359,8 +363,10 @@ void SSBModGUI::configureFileName()
|
|||||||
m_ssbMod->getInputMessageQueue()->push(message);
|
m_ssbMod->getInputMessageQueue()->push(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBModGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused)))
|
void SSBModGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
||||||
{
|
{
|
||||||
|
(void) widget;
|
||||||
|
(void) rollDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSBModGUI::onMenuDialogCalled(const QPoint &p)
|
void SSBModGUI::onMenuDialogCalled(const QPoint &p)
|
||||||
|
@ -71,8 +71,9 @@ void StringRangeGUI::setValue(const std::string& value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void StringRangeGUI::on_rangeCombo_currentIndexChanged(int index __attribute__((unused)))
|
void StringRangeGUI::on_rangeCombo_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
emit valueChanged();
|
emit valueChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user