From e4be7a34a3dd8ba7571673c7d176dd25235b6d1b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 5 May 2020 17:19:23 +0200 Subject: [PATCH] siren: correct scaling to match reference output --- nihav-vivo/src/codecs/siren.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5