feat: a level control for the voice keyer, and name every CAT backend in its PTT list
The messages went to the radio exactly as recorded. Nothing in OpsLog could raise them, so a microphone captured quietly drove the rig quietly and the only remedies were the radio's own USB input menu or the Windows mixer — which is where the operator was heading. There is now a level from 10 to 400 %, applied with clamping (a wrap would turn loud speech into noise on the air), and Play previews at that same level so the adjustment is made against what will actually be transmitted. The PTT method list also named only OmniRig, Flex, Icom and TCI, so choosing a native Yaesu left "CAT" with no backend beside it — which reads as "there is no CAT PTT for my radio" and sends the operator to RTS on a COM port that has nothing to do with the rig. Same list-needing-every-member shape as three earlier bugs in this feature. The TestPTT log line had the same rot: it said "CAT via OmniRig" whatever backend was running.
This commit is contained in:
@@ -1114,13 +1114,13 @@ export function SettingsModal({ onClose, onSaved, initialSection, onMainPaneChan
|
||||
from_radio: string; to_radio: string; recording_device: string; listening_device: string;
|
||||
qso_record: boolean; qso_dir: string; preroll_seconds: number;
|
||||
ptt_method: 'none' | 'cat' | 'rts' | 'dtr'; ptt_port: string; format: 'wav' | 'mp3';
|
||||
from_gain: number; mic_gain: number;
|
||||
from_gain: number; mic_gain: number; tx_gain: number;
|
||||
};
|
||||
type AudioDev = { id: string; name: string; default: boolean };
|
||||
const [audioCfg, setAudioCfg] = useState<AudioSettings>({
|
||||
from_radio: '', to_radio: '', recording_device: '', listening_device: '',
|
||||
qso_record: false, qso_dir: '', preroll_seconds: 8, ptt_method: 'none', ptt_port: '', format: 'wav',
|
||||
from_gain: 100, mic_gain: 100,
|
||||
from_gain: 100, mic_gain: 100, tx_gain: 100,
|
||||
});
|
||||
const [audioInputs, setAudioInputs] = useState<AudioDev[]>([]);
|
||||
const [audioOutputs, setAudioOutputs] = useState<AudioDev[]>([]);
|
||||
@@ -4849,6 +4849,8 @@ export function SettingsModal({ onClose, onSaved, initialSection, onMainPaneChan
|
||||
icom: t('cat.optIcom'),
|
||||
'icom-net': t('cat.optIcomNet'),
|
||||
tci: t('cat.optTci'),
|
||||
yaesu: t('cat.optYaesu'),
|
||||
xiegu: t('cat.optXiegu'),
|
||||
} as Record<string, string>)[catCfg.backend] ?? '';
|
||||
|
||||
const deviceSelect = (
|
||||
@@ -5022,6 +5024,19 @@ export function SettingsModal({ onClose, onSaved, initialSection, onMainPaneChan
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{/* Playback level. Nothing else could raise it: the message went to the
|
||||
rig exactly as recorded, so a quietly recorded mic drove the radio
|
||||
quietly and the only remedies were the rig's own USB input menu or
|
||||
the Windows mixer. */}
|
||||
<div className="grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-2">
|
||||
<Label className="text-sm">{t('aud.txLevel')}</Label>
|
||||
<div className="flex items-center gap-2">
|
||||
<input type="range" min={10} max={400} step={5} value={audioCfg.tx_gain}
|
||||
onChange={(e) => setAudioField({ tx_gain: parseInt(e.target.value, 10) })} className="w-48 accent-primary" />
|
||||
<span className="font-mono text-xs w-12 text-right">{audioCfg.tx_gain}%</span>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground">{t('aud.txLevelHint')}</p>
|
||||
{dvkErr && <p className="text-[11px] text-destructive">{dvkErr}</p>}
|
||||
<div className="space-y-1.5">
|
||||
{dvkMsgs.map((m) => {
|
||||
|
||||
Reference in New Issue
Block a user