forge
Explore
Log in

Don't you dare go Hollow

ec-aac test full_chain_low_band: downsampled SBR outputs at the core rate, so the core is compared as is, not 2x upsampled (fsaac48 now corr 1.000000 at lag -481)

Browse files at this commit

83388aede27c36f82525c83b5d131143259c5ae2Ahmet Kaan GümüşParent: 780c4a9
crates/ec-aac/tests/sbr_real_library/chunk_a.rsmodified+5 -1
@@ -164,7 +164,11 @@ pub(super) fn full_chain_low_band_matches_own_core() {
164 // sample-for-sample with the full-chain output's rate --164 // sample-for-sample with the full-chain output's rate --
165 // crude, but a low-pass well below the core Nyquist erases the165 // crude, but a low-pass well below the core Nyquist erases the
166 // stairstep artifacts this introduces.166 // stairstep artifacts this introduces.
167- let up = upsample_2x(&core[ch]);167+ let up = if full_rate == core_rate {
168+ core[ch].clone()
169+ } else {
170+ upsample_2x(&core[ch])
171+ };
168 let cutoff = f64::from(core_rate) * 0.4;172 let cutoff = f64::from(core_rate) * 0.4;
169 let keep = if full.len() > core.len() {173 let keep = if full.len() > core.len() {
170 mono_prefix(&full)174 mono_prefix(&full)