1
0
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:
f4exb
2020-08-01 10:09:39 +02:00
parent a72631059f
commit 263d96c0cd
40 changed files with 149 additions and 66 deletions
+19 -14
View File
@@ -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))
{