mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-05 08:21:16 -05:00
Fix warnings
This commit is contained in:
parent
c0fc8c3b73
commit
9078ea21d4
@ -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);
|
||||
|
@ -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,11 +470,16 @@ 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) {
|
||||
if (sr == 0)
|
||||
{
|
||||
if (m_audioSampleRate > 0) {
|
||||
sr = m_audioSampleRate;
|
||||
} else {
|
||||
sr = 48000;
|
||||
}
|
||||
}
|
||||
return sr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user