Core/burn/snd/burn_ym2608.cpp
// ----------------------------------------------------------------------------
// Execute YM2608 for part of a frame
Execute YM2608 for part of a frame
Execute YM2608 for part of a frame
static void AY8910Render(INT32 nSegmentLength)
{
#if defined FBA_DEBUG
	if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608 AY8910Render called without init\n"));
#endif
	if (nAY8910Position >= nSegmentLength) {
		return;
	}
	nSegmentLength -= nAY8910Position;
	pYM2608Buffer[2] = pBuffer + 2 * 4096 + 4 + nAY8910Position;
	pYM2608Buffer[3] = pBuffer + 3 * 4096 + 4 + nAY8910Position;
	pYM2608Buffer[4] = pBuffer + 4 * 4096 + 4 + nAY8910Position;
	AY8910Update(0, &pYM2608Buffer[2], nSegmentLength);
	nAY8910Position += nSegmentLength;
}
static void AY8910Render ( INT32 nSegmentLength ) { #if defined FBA_DEBUG if ( ! DebugSnd_YM2608Initted ) bprintf ( PRINT_ERROR , _T ( " \n " ) ) ; #endif if ( nAY8910Position >= nSegmentLength ) { return ; } nSegmentLength -= nAY8910Position ; pYM2608Buffer [ 2 ] = pBuffer + 2 * 4096 + 4 + nAY8910Position ; pYM2608Buffer [ 3 ] = pBuffer + 3 * 4096 + 4 + nAY8910Position ; pYM2608Buffer [ 4 ] = pBuffer + 4 * 4096 + 4 + nAY8910Position ; AY8910Update ( 0 , & pYM2608Buffer [ 2 ] , nSegmentLength ) ; nAY8910Position += nSegmentLength ; }
Execute YM2608 for part of a frame
Execute YM2608 for part of a frame