fix throttling interaction with sound and sound/throttle flag

This commit is contained in:
zeromus 2009-02-07 00:57:43 +00:00
parent 6efc80f1c5
commit ea451678a3
1 changed files with 7 additions and 1 deletions

View File

@ -784,8 +784,14 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
//MBG TODO - think about this logic
//throttle
bool throttle = true;
if( (eoptions&EO_NOTHROTTLE) )
{
if(!soundo) throttle = false;
}
if(!(eoptions&EO_NOTHROTTLE) && (!soundo)) //if throttling is enabled..
if(throttle) //if throttling is enabled..
if(!turbo) //and turbo is disabled..
if(!FCEUI_EmulationPaused()
||JustFrameAdvanced