... for konami

This commit is contained in:
dinkc64 2014-07-09 04:02:46 +00:00
parent 5967fded7d
commit a7c3276cfa
2 changed files with 11 additions and 7 deletions

View File

@ -920,10 +920,12 @@ static INT32 DrvFrame()
if (nmi_enable && (i & 1)) {
ZetNmi();
}
INT32 nSegmentLength = nBurnSoundLen / nInterleave;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
SN76496Update(0, pSoundBuf, nSegmentLength);
nSoundBufferPos += nSegmentLength;
if (pBurnSoundOut) {
INT32 nSegmentLength = nBurnSoundLen / nInterleave;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
SN76496Update(0, pSoundBuf, nSegmentLength);
nSoundBufferPos += nSegmentLength;
}
}
ZetClose();

View File

@ -562,9 +562,11 @@ static INT32 DrvFrame()
ZetClose();
M6809Close();
SN76496Update(0, pBurnSoundOut, nBurnSoundLen);
SN76496Update(1, pBurnSoundOut, nBurnSoundLen);
if (pBurnSoundOut) {
SN76496Update(0, pBurnSoundOut, nBurnSoundLen);
SN76496Update(1, pBurnSoundOut, nBurnSoundLen);
}
if (pBurnDraw) {
DrvDraw();
}