From 25b1cf2b6f4f4fc4942af6b795456df9f4dd0304 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 16:30:22 +0000 Subject: [PATCH] audio: expose validated ADTS configuration fields --- crates/audio/src/aac/config.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/audio/src/aac/config.rs b/crates/audio/src/aac/config.rs index b81f56f3e..3d12b0343 100644 --- a/crates/audio/src/aac/config.rs +++ b/crates/audio/src/aac/config.rs @@ -362,9 +362,12 @@ pub enum AdtsConfigError { /// ADTS fixed fields taken from the prefix of an AudioSpecificConfig. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct AdtsConfig { - object_type: u8, - sf_index: u8, - channel_config: u8, + /// Audio object type, 1 through 4. + pub object_type: u8, + /// Indexed sample rate, 0 through 12. + pub sf_index: u8, + /// Channel configuration, 1 through 7. + pub channel_config: u8, } impl AdtsConfig { /// Parse only the first two ASC bytes. Unlike a decoder's full ASC parser, this accepts all