From: Kostya Shishkov Date: Sat, 15 Aug 2020 12:33:50 +0000 (+0200) Subject: vx: audio should have eight pulses in one word, not four X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=1bab3697e8a1d774a2548fdd2bc9bdbf61b46563;p=nihav.git vx: audio should have eight pulses in one word, not four --- 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;