From 6c9ff33d6801a35fa688bfb6320be76b4ebf300c Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Thu, 12 Mar 2026 22:42:33 +0100 Subject: [PATCH] [feat](trx-frontend): add background decode audio commands Co-authored-by: OpenAI Codex Signed-off-by: Stan Grams --- src/trx-client/trx-frontend/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/trx-client/trx-frontend/src/lib.rs b/src/trx-client/trx-frontend/src/lib.rs index d3ca304..6f8ee83 100644 --- a/src/trx-client/trx-frontend/src/lib.rs +++ b/src/trx-client/trx-frontend/src/lib.rs @@ -30,6 +30,16 @@ pub enum VChanAudioCmd { /// to its Opus audio stream. `freq_hz` and `mode` are used if the server /// needs to create the channel. Subscribe { uuid: Uuid, freq_hz: u64, mode: String }, + /// Create a hidden server-side DSP channel for background decoding. + /// These channels are not enumerated as user-visible virtual channels and + /// do not request an Opus audio stream back to the frontend. + SubscribeBackground { + uuid: Uuid, + freq_hz: u64, + mode: String, + bandwidth_hz: u32, + decoder_kinds: Vec, + }, /// Unsubscribe from audio (encoder task is stopped) but keep the DSP channel. Unsubscribe(Uuid), /// Unsubscribe and destroy the DSP channel.