rf5c68 pcm core: sound buffer was not being incremented properly. fixes samples cut short in Hammer Away (and possibly anything else that uses this)

This commit is contained in:
dinkc64 2014-12-15 21:06:21 +00:00
parent 80006bd236
commit 779d14b0ac
1 changed files with 3 additions and 2 deletions

View File

@ -103,8 +103,9 @@ void RF5C68PCMUpdate(INT16* pSoundBuf, INT32 length)
nLeftSample = BURN_SND_CLIP(nLeftSample);
nRightSample = BURN_SND_CLIP(nRightSample);
pSoundBuf[i + 0] = nLeftSample;
pSoundBuf[i + 1] = nRightSample;
pSoundBuf[0] = nLeftSample;
pSoundBuf[1] = nRightSample;
pSoundBuf += 2;
}
}