mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 08:24:43 -04:00
Demod plugins with configurable audio: fixed audio sample rate handling
This commit is contained in:
@@ -541,20 +541,25 @@ void BFMDemodGUI::tick()
|
||||
pilotPowDbStr.sprintf("%+02.1f", pilotPowDb);
|
||||
ui->pilotPower->setText(pilotPowDbStr);
|
||||
|
||||
if (m_bfmDemod->getPilotLock())
|
||||
{
|
||||
if (ui->audioStereo->isChecked())
|
||||
{
|
||||
ui->audioStereo->setStyleSheet("QToolButton { background-color : green; }");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ui->audioStereo->isChecked())
|
||||
{
|
||||
ui->audioStereo->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
||||
}
|
||||
}
|
||||
if (m_bfmDemod->getAudioSampleRate() < 0)
|
||||
{
|
||||
ui->audioStereo->setStyleSheet("QToolButton { background-color : red; }");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_bfmDemod->getPilotLock())
|
||||
{
|
||||
if (ui->audioStereo->isChecked()) {
|
||||
ui->audioStereo->setStyleSheet("QToolButton { background-color : green; }");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ui->audioStereo->isChecked()) {
|
||||
ui->audioStereo->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ui->rds->isChecked() && (m_rdsTimerCount == 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user