Fix clipping/distortion in Enduro Racer (snd/segapcm.cpp)
This commit is contained in:
parent
86d2701dd5
commit
fd611e716a
|
@ -114,8 +114,8 @@ void SegaPCMUpdate(INT16* pSoundBuf, INT32 nLength)
|
|||
nRightSample = BURN_SND_CLIP(nRightSample);
|
||||
}
|
||||
|
||||
pSoundBuf[0] += nLeftSample;
|
||||
pSoundBuf[1] += nRightSample;
|
||||
pSoundBuf[0] = BURN_SND_CLIP(pSoundBuf[0] + nLeftSample);
|
||||
pSoundBuf[1] = BURN_SND_CLIP(pSoundBuf[1] + nRightSample);
|
||||
pSoundBuf += 2;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue