From 44f6395b8fd7bae8c1b03f4d4100ff434e1c9912 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 27 Mar 2020 18:17:04 +0100 Subject: [PATCH] vmdaudio: fix u8 silent blocks value --- nihav-game/src/codecs/vmd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-game/src/codecs/vmd.rs b/nihav-game/src/codecs/vmd.rs index 21be388..f260f9b 100644 --- a/nihav-game/src/codecs/vmd.rs +++ b/nihav-game/src/codecs/vmd.rs @@ -414,7 +414,7 @@ impl NADecoder for VMDAudioDecoder { for _ in 0..nblocks { if (mask & 1) != 0 { for i in 0..self.blk_align * channels { - dst[doff + i] = 0; + dst[doff + i] = 128; } } else if channels == 1 { for i in 0..self.blk_size { -- 2.39.5