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 tempwinsync = winsync; //Store winsync setting
winsync = 0; //turn off winsync for turbo (so that turbo can function even with VBlank sync methods winsync = 0; //turn off winsync for turbo (so that turbo can function even with VBlank sync methods
turbo = true; turbo = true;
if (muteTurbo) TrashSound(); if (muteTurbo && soundo) TrashSound();
} }
void FCEUD_TurboOff (void) void FCEUD_TurboOff (void)
{ {
winsync = tempwinsync; //Restore winsync setting winsync = tempwinsync; //Restore winsync setting
turbo = false; turbo = false;
if (muteTurbo) InitSound(); if (muteTurbo && soundo) InitSound();
} }
void FCEUD_TurboToggle(void) void FCEUD_TurboToggle(void)
{ {
@ -1500,7 +1500,7 @@ void FCEUD_TurboToggle(void)
} }
turbo = !turbo; turbo = !turbo;
if (muteTurbo & !soundo) if (muteTurbo && soundo)
{ {
if (turbo) TrashSound(); if (turbo) TrashSound();
if (!turbo) InitSound(); if (!turbo) InitSound();

View File

@ -570,7 +570,7 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
} }
AutoFire(); AutoFire();
if(!EnableAutosave) UpdateAutosave(); UpdateAutosave();
#ifdef _S9XLUA_H #ifdef _S9XLUA_H
FCEU_LuaFrameBoundary(); FCEU_LuaFrameBoundary();
@ -856,9 +856,9 @@ static int AutosaveCounter = 0;
void UpdateAutosave(void) void UpdateAutosave(void)
{ {
/*if(!EnableAutosave) if(!EnableAutosave)
return; return;
*/
char * f; char * f;
AutosaveCounter = (AutosaveCounter + 1) % 256; AutosaveCounter = (AutosaveCounter + 1) % 256;
if(AutosaveCounter == 0) if(AutosaveCounter == 0)