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:
parent
80006bd236
commit
779d14b0ac
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue