Win32 - minor mute sound on turbo fix
This commit is contained in:
parent
551cb8e866
commit
49a8bc25cf
|
@ -1482,13 +1482,13 @@ void FCEUD_TurboOn (void)
|
|||
tempwinsync = winsync; //Store winsync setting
|
||||
winsync = 0; //turn off winsync for turbo (so that turbo can function even with VBlank sync methods
|
||||
turbo = true;
|
||||
if (muteTurbo) TrashSound();
|
||||
if (muteTurbo && soundo) TrashSound();
|
||||
}
|
||||
void FCEUD_TurboOff (void)
|
||||
{
|
||||
winsync = tempwinsync; //Restore winsync setting
|
||||
turbo = false;
|
||||
if (muteTurbo) InitSound();
|
||||
if (muteTurbo && soundo) InitSound();
|
||||
}
|
||||
void FCEUD_TurboToggle(void)
|
||||
{
|
||||
|
@ -1500,7 +1500,7 @@ void FCEUD_TurboToggle(void)
|
|||
}
|
||||
|
||||
turbo = !turbo;
|
||||
if (muteTurbo & !soundo)
|
||||
if (muteTurbo && soundo)
|
||||
{
|
||||
if (turbo) TrashSound();
|
||||
if (!turbo) InitSound();
|
||||
|
|
|
@ -570,7 +570,7 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
|
|||
}
|
||||
|
||||
AutoFire();
|
||||
if(!EnableAutosave) UpdateAutosave();
|
||||
UpdateAutosave();
|
||||
|
||||
#ifdef _S9XLUA_H
|
||||
FCEU_LuaFrameBoundary();
|
||||
|
@ -856,9 +856,9 @@ static int AutosaveCounter = 0;
|
|||
|
||||
void UpdateAutosave(void)
|
||||
{
|
||||
/*if(!EnableAutosave)
|
||||
if(!EnableAutosave)
|
||||
return;
|
||||
*/
|
||||
|
||||
char * f;
|
||||
AutosaveCounter = (AutosaveCounter + 1) % 256;
|
||||
if(AutosaveCounter == 0)
|
||||
|
|
Loading…
Reference in New Issue