refactor(tci): remove the test bench now that choosing the device is the setup
The TCI section of the audio settings was an investigation: open the stream, read what arrives, record ten seconds to listen to, key a tone. It answered every question it was built for — the frame layout, the sample width, that the radio asks rather than follows a clock, that the transmit audio source decides — and confirmed 80 W on real hardware. None of that belongs in front of an operator now. The radio is simply one of the devices in the two dropdowns, and choosing it IS the configuration: one control, in the place where the question is already being asked. Keeping the tick box beside it would have been two switches for one decision, with the second one where nobody looks. Gone with it: the stream/record/probe bindings, the audio.tci_rx setting, and twenty-four translation keys. The plumbing they proved out stays and now carries the voice keyer.
This commit is contained in:
@@ -1210,28 +1210,6 @@ export namespace cat {
|
||||
this.fixed = source["fixed"];
|
||||
}
|
||||
}
|
||||
export class TCIAudioStatus {
|
||||
running: boolean;
|
||||
sample_rate: number;
|
||||
frames: number;
|
||||
samples: number;
|
||||
peak_db: number;
|
||||
last_err?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new TCIAudioStatus(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.running = source["running"];
|
||||
this.sample_rate = source["sample_rate"];
|
||||
this.frames = source["frames"];
|
||||
this.samples = source["samples"];
|
||||
this.peak_db = source["peak_db"];
|
||||
this.last_err = source["last_err"];
|
||||
}
|
||||
}
|
||||
export class YaesuTXState {
|
||||
available: boolean;
|
||||
model?: string;
|
||||
|
||||
Reference in New Issue
Block a user