From 569125abfb33df63d2ddcab874999053fb6c4944 Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Sun, 3 Aug 2014 20:01:24 +0000 Subject: [PATCH] PCEngine snd/c6280.cpp: fix for static/fast clicking in Splatterhouse, Cyber Core, Dai Senpu, Dead Moon, Deep Blue, Gekisha Boy, Sinistron (after game starts), Tenseiryuu (Saint Dragon) & possibly others --- src/burn/snd/c6280.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/burn/snd/c6280.cpp b/src/burn/snd/c6280.cpp index 673e007fd..67d60dbe2 100644 --- a/src/burn/snd/c6280.cpp +++ b/src/burn/snd/c6280.cpp @@ -219,11 +219,11 @@ static void c6280_stream_update() INT16 *pBuffer = stream_buffer + start * 2; c6280_previous_offset = end; - if (end >= nBurnSoundLen) { - c6280_previous_offset = 0; + /* if (end >= nBurnSoundLen) { // this is always true, so //'d -dink + c6280_previous_offset = 0; // c6280_previous_offset reset to 0 at the bottom of c6280_update(); } else { c6280_previous_offset = end; - } + }*/ #endif static const INT32 scale_tab[] = { @@ -429,6 +429,7 @@ void c6280_update(INT16 *pBuffer, INT32 samples) pBuffer[(i << 1) + 0] = BURN_SND_CLIP(nLeftSample); pBuffer[(i << 1) + 1] = BURN_SND_CLIP(nRightSample); } + c6280_previous_offset = 0; } UINT8 c6280_read()