mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
ChannelAnalzyerNG: fixed bandwidth expand/shrink with baseband sample rate changes
This commit is contained in:
parent
88d7a97b97
commit
457b9aa2c8
@ -163,19 +163,12 @@ bool ChannelAnalyzerNGGUI::handleMessage(const Message& message)
|
||||
{
|
||||
int newRate = getRequestedChannelSampleRate() / (1<<m_spanLog2);
|
||||
|
||||
uint64_t newBW = (ui->BW->value() * 100L * m_rate) / newRate;
|
||||
uint64_t newLC = (ui->lowCut->value() * 100L * m_rate) / newRate;
|
||||
|
||||
qDebug() << "ChannelAnalyzerNGGUI::handleMessage: MsgReportChannelSampleRateChanged:"
|
||||
<< " newRate: " << newRate
|
||||
<< " newBW: " << newBW
|
||||
<< " newLC: " << newLC;
|
||||
<< "m_rate: " << m_rate
|
||||
<< " newRate: " << newRate;
|
||||
|
||||
m_rate = newRate;
|
||||
|
||||
ui->BW->setValue(newBW/100);
|
||||
ui->lowCut->setValue(newLC/100);
|
||||
|
||||
blockApplySettings(true);
|
||||
setFiltersUIBoundaries();
|
||||
blockApplySettings(false);
|
||||
|
Loading…
Reference in New Issue
Block a user