fix(dmr): normalize voice audio and lock bandwidth

This commit is contained in:
2026-07-14 20:14:50 +03:00
parent bac0b7612e
commit 9755378586
5 changed files with 27 additions and 15 deletions
+4 -8
View File
@@ -4155,6 +4155,9 @@ var
Names: array[0..FILT_COUNT-1] of string;
DefIdx: Integer;
begin
// DMR has a mandatory 12.5 kHz channel. There is nothing for the operator
// to choose, so hide the whole filter selector and restore it on exit.
PanelFilter.Visible := FController.FMode <> MODE_DMR;
if FController.FMode = MODE_FM then
begin
// FM: show only NFM and WFM buttons, resize them to fill the row
@@ -4236,14 +4239,7 @@ begin
FController.FFilter := 0;
FController.FFilterBW := FILT_DMR_BW;
FController.FFMDeviation := DMR_FM_DEV;
BtnFilter[0].Caption := '12.5k';
BtnFilter[0].Left := LeftPanelButtonLeft(PanelFilter.Width, 1, 0);
BtnFilter[0].Width := LeftPanelButtonWidth(PanelFilter.Width, 1, 0);
BtnFilter[0].Top := 16;
BtnFilter[0].Visible := True;
StyleButton(BtnFilter[0], True);
for i := 1 to FILT_COUNT - 1 do BtnFilter[i].Visible := False;
PanelFilter.Height := BtnFilter[0].Top + BtnFilter[0].Height + 4;
for i := 0 to FILT_COUNT - 1 do BtnFilter[i].Visible := False;
RelayoutBelowBands;
Exit;
end;