Core/burn/snd/burn_ymf278b.cpp
// ----------------------------------------------------------------------------
// Execute YMF278B for part of a frame
Execute YMF278B for part of a frame
Execute YMF278B for part of a frame
static void YMF278BRender(INT32 nSegmentLength)
{
#if defined FBA_DEBUG
	if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("YMF278BRender called without init\n"));
#endif
	if (nYMF278BPosition >= nSegmentLength) {
		return;
	}
	nSegmentLength -= nYMF278BPosition;
	pYMF278BBuffer[0] = pBuffer + 0 * 4096 + 4 + nYMF278BPosition;
	pYMF278BBuffer[1] = pBuffer + 1 * 4096 + 4 + nYMF278BPosition;
	ymf278b_pcm_update(0, pYMF278BBuffer, nSegmentLength);
	nYMF278BPosition += nSegmentLength;
}
static void YMF278BRender ( INT32 nSegmentLength ) { #if defined FBA_DEBUG if ( ! DebugSnd_YMF278BInitted ) bprintf ( PRINT_ERROR , _T ( " \n " ) ) ; #endif if ( nYMF278BPosition >= nSegmentLength ) { return ; } nSegmentLength -= nYMF278BPosition ; pYMF278BBuffer [ 0 ] = pBuffer + 0 * 4096 + 4 + nYMF278BPosition ; pYMF278BBuffer [ 1 ] = pBuffer + 1 * 4096 + 4 + nYMF278BPosition ; ymf278b_pcm_update ( 0 , pYMF278BBuffer , nSegmentLength ) ; nYMF278BPosition += nSegmentLength ; }
Execute YMF278B for part of a frame
Execute YMF278B for part of a frame
//	bprintf(PRINT_NORMAL, _T("    YMF278B render %6i -> %6i\n"), nYMF278BPosition, nSegmentLength);