aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-game
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shiskov@gmail.com>2020-08-15 14:33:50 +0200
committerKostya Shishkov <kostya.shiskov@gmail.com>2020-08-15 14:33:50 +0200
commit1bab3697e8a1d774a2548fdd2bc9bdbf61b46563 (patch)
treee1ae6fad2d545574ac0051fe70e20560fe6294b7 /nihav-game
parent55d852316872154db020827bd833fff7d5b49604 (diff)
downloadnihav-1bab3697e8a1d774a2548fdd2bc9bdbf61b46563.tar.gz
vx: audio should have eight pulses in one word, not four
Diffstat (limited to 'nihav-game')
-rw-r--r--nihav-game/src/codecs/vx.rs2
1 files changed, 1 insertions, 1 deletions
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;