1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-05 08:21:16 -05:00

Fix warnings

This commit is contained in:
srcejon 2024-05-08 20:15:01 +01:00
parent c0fc8c3b73
commit 9078ea21d4
2 changed files with 9 additions and 6 deletions

View File

@ -53,8 +53,8 @@ const int BFMDemod::m_udpBlockSize = 512;
BFMDemod::BFMDemod(DeviceAPI *deviceAPI) :
ChannelAPI(m_channelIdURI, ChannelAPI::StreamSingleSink),
m_deviceAPI(deviceAPI),
m_spectrumVis(SDR_RX_SCALEF),
m_running(false),
m_spectrumVis(SDR_RX_SCALEF),
m_basebandSampleRate(0)
{
setObjectName(m_channelId);

View File

@ -441,8 +441,6 @@ SSBDemodGUI::SSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
displaySettings();
makeUIConnections();
qDebug() << "********************" << m_settings.m_filterBank.size() << m_settings.m_filterIndex;
qDebug() << "*********** " << m_settings.m_filterBank[m_settings.m_filterIndex].m_spanLog2;
applyBandwidths(m_settings.m_filterBank[m_settings.m_filterIndex].m_spanLog2, true); // does applySettings(true)
DialPopup::addPopupsToChildDials(this);
m_resizer.enableChildMouseTracking();
@ -472,10 +470,15 @@ void SSBDemodGUI::applySettings(bool force)
uint32_t SSBDemodGUI::getValidAudioSampleRate() const
{
// When not running, m_ssbDemod->getAudioSampleRate() will return 0, but we
// want a valid value to initialise the GUI
// want a valid value to initialise the GUI, to allow a user to preselect settings
int sr = m_ssbDemod->getAudioSampleRate();
if (sr == 0) {
sr = 48000;
if (sr == 0)
{
if (m_audioSampleRate > 0) {
sr = m_audioSampleRate;
} else {
sr = 48000;
}
}
return sr;
}