1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Websocket spectrum: adapted plugins (missing bits)

This commit is contained in:
f4exb 2020-04-30 10:00:50 +02:00
parent 0d5ecaca9f
commit 4d9d804f97
2 changed files with 1 additions and 5 deletions

View File

@ -117,7 +117,6 @@ bool BFMDemodGUI::handleMessage(const Message& message)
qDebug("BFMDemodGUI::handleMessage: BFMDemodReport::MsgReportChannelSampleRateChanged: %d S/s", m_rate);
ui->glSpectrum->setCenterFrequency(m_rate / 4);
ui->glSpectrum->setSampleRate(m_rate / 2);
m_spectrumVis->configureDSP(m_rate / 4, m_rate / 2);
return true;
}
else if (BFMDemod::MsgConfigureBFMDemod::match(message))
@ -407,7 +406,6 @@ BFMDemodGUI::BFMDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
SpectrumVis::AvgModeNone, // no averaging
FFTWindow::BlackmanHarris,
false); // logarithmic scale
m_spectrumVis->configureDSP(m_rate / 4, m_rate / 2);
connect(&MainWindow::getInstance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
m_channelMarker.blockSignals(true);

View File

@ -171,10 +171,8 @@ void UDPSource::applySettings(const UDPSourceSettings& settings, bool force)
if ((settings.m_sampleFormat != m_settings.m_sampleFormat) || force) {
reverseAPIKeys.append("sampleFormat");
}
if ((settings.m_inputSampleRate != m_settings.m_inputSampleRate) || force)
{
if ((settings.m_inputSampleRate != m_settings.m_inputSampleRate) || force) {
reverseAPIKeys.append("inputSampleRate");
m_spectrumVis.configureDSP(0, settings.m_inputSampleRate);
}
if ((settings.m_rfBandwidth != m_settings.m_rfBandwidth) || force) {
reverseAPIKeys.append("rfBandwidth");