]> git.nihav.org Git - nihav.git/commitdiff
vx: audio should have eight pulses in one word, not four
authorKostya Shishkov <kostya.shiskov@gmail.com>
Sat, 15 Aug 2020 12:33:50 +0000 (14:33 +0200)
committerKostya Shishkov <kostya.shiskov@gmail.com>
Sat, 15 Aug 2020 12:33:50 +0000 (14:33 +0200)
nihav-game/src/codecs/vx.rs

index 1a37359153d279c4d582f6b6934019c1c5ae92c2..08c26700dea501606941b7035748776ca175208f 100644 (file)
@@ -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;