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

This commit is contained in:
dinkc64 2014-08-03 20:01:24 +00:00
parent 8d3d1b6ad7
commit 569125abfb
1 changed files with 4 additions and 3 deletions

View File

@ -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()