From f162c2362e8132d422c6e8eedb18d49683243128 Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Sat, 10 May 2014 05:40:24 +0000 Subject: [PATCH] Fix mixing crackles in the iremga20 driver, improves the game In The Hunt quite a bit --- src/burn/snd/iremga20.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/burn/snd/iremga20.cpp b/src/burn/snd/iremga20.cpp index 3a1860b20..db85b1095 100644 --- a/src/burn/snd/iremga20.cpp +++ b/src/burn/snd/iremga20.cpp @@ -145,8 +145,8 @@ void iremga20_update(INT32 device, INT16 *buffer, INT32 length) nLeftSample = BURN_SND_CLIP(nLeftSample); nRightSample = BURN_SND_CLIP(nRightSample); - buffer[0] += nLeftSample; - buffer[1] += nRightSample; + buffer[0] = BURN_SND_CLIP(buffer[0] + nLeftSample); + buffer[1] = BURN_SND_CLIP(buffer[1] + nRightSample); } /* update the regs now */