mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-13 11:54:50 +00:00
craft-audio: rustfmt the LATM module
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user