Win32 - minor mute sound on turbo fix

This commit is contained in:
adelikat 2008-12-13 03:31:44 +00:00
parent 551cb8e866
commit 49a8bc25cf
2 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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)