d_shaolins.cpp - small update

This commit is contained in:
Barry Harris 2014-10-23 10:58:17 +00:00
parent 21c9781b5f
commit bd4494791d
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ static INT32 DrvFrame()
// Render Sound Segment
if (pBurnSoundOut) {
INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
INT32 nSegmentLength = nBurnSoundLen / nSoundBufferPos;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
SN76496Update(0, pSoundBuf, nSegmentLength);
SN76496Update(1, pSoundBuf, nSegmentLength);