From 1bab3697e8a1d774a2548fdd2bc9bdbf61b46563 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 15 Aug 2020 14:33:50 +0200 Subject: [PATCH] vx: audio should have eight pulses in one word, not four --- nihav-game/src/codecs/vx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-game/src/codecs/vx.rs b/nihav-game/src/codecs/vx.rs index 1a37359..08c2670 100644 --- a/nihav-game/src/codecs/vx.rs +++ b/nihav-game/src/codecs/vx.rs @@ -1090,7 +1090,7 @@ impl AudioState { idx += 128; for _ in 0..len { let val = br.read_u16le()?; - for i in 0..4 { + for i in 0..8 { let add = i32::from((val >> (14 - i * 2)) & 3); dst[idx] += self.scale * (add * 2 - 3); idx += step; -- 2.39.5