From: Kostya Shishkov Date: Fri, 27 Mar 2020 17:17:04 +0000 (+0100) Subject: vmdaudio: fix u8 silent blocks value X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=44f6395b8fd7bae8c1b03f4d4100ff434e1c9912;p=nihav.git vmdaudio: fix u8 silent blocks value --- 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 {