[feat](trx-core): add hidden background channel API

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-12 22:42:21 +01:00
parent 2d014ac45b
commit b83558b1a2
+14
View File
@@ -115,6 +115,20 @@ pub trait VirtualChannelManager: Send + Sync {
mode: &RigMode,
) -> Result<broadcast::Receiver<Vec<f32>>, VChanError>;
/// Return a PCM receiver for an existing hidden background-decode channel,
/// or create one if it does not exist.
///
/// Hidden background channels are not enumerated via `channels()` and do
/// not count against the normal virtual-channel cap.
fn ensure_background_channel_pcm(
&self,
id: Uuid,
freq_hz: u64,
mode: &RigMode,
) -> Result<broadcast::Receiver<Vec<f32>>, VChanError> {
self.ensure_channel_pcm(id, freq_hz, mode)
}
/// Return a snapshot of all channels in display order.
fn channels(&self) -> Vec<VChannelInfo>;