craft-audio: rustfmt the LATM module

This commit is contained in:
Dylan M. Taylor
2026-11-12 01:02:29 +00:00
parent 5ddeb7d79d
commit 11f1547cf8
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -95,7 +95,10 @@ fn stream_mux_config(r: &mut BitReader) -> Option<LatmConfig> {
} else {
// `ch` is an index into Table 1.19, not a count: 7 and 12 are eight channels, 11 is seven,
// and a reserved configuration has no layout
(super::AudioSpecificConfig::lc(sf as u8, ch as u8).to_bytes().ok()?, super::config_layout(ch as u8)?.iter().map(|e| e.0.channels() as u32).sum())
(
super::AudioSpecificConfig::lc(sf as u8, ch as u8).to_bytes().ok()?,
super::config_layout(ch as u8)?.iter().map(|e| e.0.channels() as u32).sum(),
)
};
// what ascLen counts past the fields read here is fill
if let Some(len) = asc_len {
+2 -2
View File
@@ -61,10 +61,10 @@ pub(crate) use config::split_adts_upto;
pub use config::{AdtsHeader, AudioSpecificConfig, ElementType, ProgramConfig, config_layout, split_adts};
#[cfg(feature = "aac-decode")]
pub use decoder::Decoder;
#[cfg(feature = "aac-decode")]
pub use latm::{LatmConfig, latm_config, latm_split};
#[cfg(feature = "aac-encode")]
pub use encoder::{BitrateMode, Encoder, EncoderConfig, EncoderStats};
#[cfg(feature = "aac-decode")]
pub use latm::{LatmConfig, latm_config, latm_split};
pub use mdct::WindowShape;
pub use tables::{SAMPLE_RATES, sample_rate_index};