From 32b8fb5f15a8b08b599bf0841dd9a8204c019390 Mon Sep 17 00:00:00 2001 From: Ian Karlsson Date: Wed, 1 Apr 2015 20:58:10 +0200 Subject: [PATCH] Fix SegaPCM volume register overflow --- src/emu/sound/segapcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/sound/segapcm.c b/src/emu/sound/segapcm.c index 2d67d332019..553a372a8aa 100644 --- a/src/emu/sound/segapcm.c +++ b/src/emu/sound/segapcm.c @@ -122,8 +122,8 @@ void segapcm_device::sound_stream_update(sound_stream &stream, stream_sample_t * v = rom[(addr >> 8) & m_rom.mask()] - 0x80; /* apply panning and advance */ - outputs[0][i] += v * regs[2]; - outputs[1][i] += v * regs[3]; + outputs[0][i] += v * (regs[2] & 0x7f); + outputs[1][i] += v * (regs[3] & 0x7f); addr = (addr + regs[7]) & 0xffffff; }