feat(multi-rig): auto-discover per-rig audio ports via GetRigs

This commit is contained in:
2026-02-25 23:31:38 +01:00
parent b1c232f388
commit 47cff3f927
9 changed files with 50 additions and 12 deletions
+1
View File
@@ -21,6 +21,7 @@ use trx_core::{DynResult, RigRequest, RigState};
pub struct RemoteRigEntry {
pub rig_id: String,
pub state: RigSnapshot,
pub audio_port: Option<u16>,
}
/// Trait implemented by concrete frontends to expose a runner entrypoint.
@@ -244,6 +244,7 @@ fn snapshot_remote_rigs(context: &FrontendRuntimeContext) -> Vec<RigEntry> {
.map(|entry| RigEntry {
rig_id: entry.rig_id.clone(),
state: entry.state.clone(),
audio_port: entry.audio_port,
})
.collect()
})