mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-07 07:37:48 -04:00
Add warning if sample rate is < 48kHz.
This commit is contained in:
parent
27f35feee8
commit
d6f5c81856
@ -101,6 +101,11 @@ bool DSDDemodGUI::handleMessage(const Message& message)
|
||||
DSPSignalNotification& notif = (DSPSignalNotification&) message;
|
||||
m_deviceCenterFrequency = notif.getCenterFrequency();
|
||||
m_basebandSampleRate = notif.getSampleRate();
|
||||
if (m_basebandSampleRate < 48000) {
|
||||
setStatusText(QString("Sample rate must be >= 48000 Hz (Currently %1 Hz)").arg(m_basebandSampleRate));
|
||||
} else {
|
||||
setStatusText("");
|
||||
}
|
||||
ui->deltaFrequency->setValueRange(false, 7, -m_basebandSampleRate/2, m_basebandSampleRate/2);
|
||||
ui->deltaFrequencyLabel->setToolTip(tr("Range %1 %L2 Hz").arg(QChar(0xB1)).arg(m_basebandSampleRate/2));
|
||||
updateAbsoluteCenterFrequency();
|
||||
|
Loading…
x
Reference in New Issue
Block a user