diff --git a/crates/ec-aac/src/decode.rs b/crates/ec-aac/src/decode.rs index 6160d5c9..c74b4b05 100644 --- a/crates/ec-aac/src/decode.rs +++ b/crates/ec-aac/src/decode.rs @@ -582,6 +582,8 @@ impl BlockDecoder { self.sbr = rate.map(crate::sbr_chain::SbrChain::new); } + /// Marks the SBR output as downsampled: the extension rate is below twice + /// the core rate, so the synthesis stays at 32 bands. pub fn set_sbr_downsampled(&mut self, on: bool) { if let Some(sbr) = self.sbr.as_mut() { sbr.set_downsampled(on); diff --git a/crates/ec-aac/src/sbr_qmf.rs b/crates/ec-aac/src/sbr_qmf.rs index c4451a87..47961884 100644 --- a/crates/ec-aac/src/sbr_qmf.rs +++ b/crates/ec-aac/src/sbr_qmf.rs @@ -218,6 +218,10 @@ impl Default for HfAnalysis { } } +/// The ISO/IEC 14496-3 4.6.18.8.2 complex synthesis QMF bank: complex subband +/// slots in, PCM out. The 64-band form doubles the rate; the 32-band +/// downsampled form (decimated window, band shift of half a sample like the +/// analysis bank) keeps the core rate. pub struct Synthesis { bands: usize, v: Vec,