From: Kostya Shishkov Date: Tue, 5 May 2020 15:19:23 +0000 (+0200) Subject: siren: correct scaling to match reference output X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e4be7a34a3dd8ba7571673c7d176dd25235b6d1b;p=nihav.git siren: correct scaling to match reference output --- diff --git a/nihav-vivo/src/codecs/siren.rs b/nihav-vivo/src/codecs/siren.rs index a9a1e2e..d36e798 100644 --- a/nihav-vivo/src/codecs/siren.rs +++ b/nihav-vivo/src/codecs/siren.rs @@ -89,7 +89,7 @@ impl SirenDecoder { let vec_cb = [vec_cb0, vec_cb1, vec_cb2, vec_cb3, vec_cb4, vec_cb5, vec_cb6]; let mut window = [0.0f32; SAMPLES]; - generate_window(WindowType::Sine, 1.0 / 320.0 / 8.0, SAMPLES, true, &mut window); + generate_window(WindowType::Sine, 1.0 / 320.0 / 64.0, SAMPLES, true, &mut window); let mut quant_tab = [0.0; 64]; for i in 0..64 {