From bd64bafb9b15d7700b0ac8cec928388f6b28102b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Tue, 18 Jan 2011 19:30:46 +0000 Subject: [PATCH] fix address overflow, happened sometimes with aburner2 (no whatsnew) --- src/emu/sound/segapcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/sound/segapcm.c b/src/emu/sound/segapcm.c index f8d244e4cd9..b5cc0516a1a 100644 --- a/src/emu/sound/segapcm.c +++ b/src/emu/sound/segapcm.c @@ -75,7 +75,7 @@ static STREAM_UPDATE( SEGAPCM_update ) /* apply panning and advance */ outputs[0][i] += v * voll; outputs[1][i] += v * volr; - addr += delta; + addr = (addr + delta) & 0xffffff; } /* store back the updated address and info */