Ejemplo n.º 1
0
void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int skip)
{
 int r,ssize;

 FCEU_UpdateInput();
 if(geniestage!=1) FCEU_ApplyPeriodicCheats();
 r=FCEUPPU_Loop(skip);

 ssize=FlushEmulateSound();

 timestampbase += timestamp;
 timestamp = 0;

 *pXBuf=skip?0:XBuf;
 *SoundBuf=WaveFinal;
 *SoundBufSize=ssize;
}
Ejemplo n.º 2
0
void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize)
{
	int ssize;

	FCEU_UpdateInput();

	if(geniestage!=1)
		FCEU_ApplyPeriodicCheats();

	FCEUPPU_Loop();

	if(timestamp)
		ssize = FlushEmulateSound();
	else
		ssize = 0;

	timestampbase += timestamp;

	timestamp = 0;

	*pXBuf= XBuf;
	*SoundBuf=WaveFinal;
	*SoundBufSize=ssize;
}