mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Fix SegaPCM volume register overflow
This commit is contained in:
parent
de775477c4
commit
32b8fb5f15
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue