[feat](trx-rs): show audio bitrate and active stream count on About page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-26 20:18:19 +01:00
parent f31fbecca6
commit c8de54d85e
7 changed files with 27 additions and 1 deletions
+6
View File
@@ -78,6 +78,12 @@ pub struct AudioStreamInfo {
pub sample_rate: u32,
pub channels: u8,
pub frame_duration_ms: u16,
#[serde(default, skip_serializing_if = "is_zero_u32")]
pub bitrate_bps: u32,
}
fn is_zero_u32(v: &u32) -> bool {
*v == 0
}
/// Write a length-prefixed audio message.