]> git.nihav.org Git - nihav.git/commitdiff
vmdaudio: fix u8 silent blocks value
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 27 Mar 2020 17:17:04 +0000 (18:17 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 27 Mar 2020 17:17:04 +0000 (18:17 +0100)
nihav-game/src/codecs/vmd.rs

index 21be388664d30f3dea21018c16afaaa65de65f94..f260f9b77598ef69ef3a91faefca9a2869b6ede0 100644 (file)
@@ -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 {