[READ-ONLY] Mirror of https://github.com/probablykasper/redlux. AAC decoder for MPEG-4 and AAC files, with rodio support
aac audio decoder mp4 package
0

Configure Feed

Select the types of activity you want to include in your feed.

Return Error::UnsupportedObjectType for AAC Main/SSR/LTP

Kasper (Apr 5, 2021, 7:54 PM +0200) ad2022af 4e747098

+2 -3
+2
README.md
··· 7 7 8 8 Reads MPEG-4 containers using [rust-mp4](https://crates.io/crates/mp4), and then constructs ADTS headers for it. Decodes AAC to PCM using [fdk-aac c-bindings](https://crates.io/crates/fdk-aac). Check the examples for usage with [rodio](https://crates.io/crates/rodio). 9 9 10 + Supports AAC-LC, HE-AAC v1 and HE-AAC v2. 11 + 10 12 ## Caveats 11 13 1. It only decodes the first AAC track it finds in an MPEG-4 container. 12 14 2. Not sure if MPEG files with CRC are supported.
-3
src/adts.rs
··· 37 37 // EEFF_FFGH 38 38 let mut byte2 = 0b0000_0000; 39 39 let object_type = match object_type { 40 - AudioObjectType::AacMain => 1, 41 40 AudioObjectType::AacLowComplexity => 2, 42 - AudioObjectType::AacScalableSampleRate => 3, 43 - AudioObjectType::AacLongTermPrediction => 4, 44 41 // Audio object types 5 (SBR) and 29 (PS) are coerced to type 2 (AAC-LC). 45 42 // The decoder will have to detect SBR/PS. This is called "Implicit 46 43 // Signaling" and it's the only option for ADTS.