fix ay8910 mixing crackles/distortion

This commit is contained in:
dinkc64 2014-06-16 04:35:30 +00:00
parent 44af09e310
commit a44d828f75
1 changed files with 2 additions and 2 deletions

View File

@ -928,8 +928,8 @@ void AY8910Render(INT16** buffer, INT16* dest, INT32 length, INT32 bAddSignal)
nRightSample = BURN_SND_CLIP(nRightSample);
if (bAddSignal) {
dest[(n << 1) + 0] += nLeftSample;
dest[(n << 1) + 1] += nRightSample;
dest[(n << 1) + 0] = BURN_SND_CLIP(dest[(n << 1) + 0] + nLeftSample);
dest[(n << 1) + 1] = BURN_SND_CLIP(dest[(n << 1) + 1] + nRightSample);
} else {
dest[(n << 1) + 0] = nLeftSample;
dest[(n << 1) + 1] = nRightSample;