mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-30 14:34:22 +01:00
disable sound sync (if enabled) when using turbo mode. fixes sound
cutting off when using turbo.
This commit is contained in:
parent
632720be0c
commit
cacc596722
@ -247,9 +247,12 @@ UpdatePads()
|
||||
*
|
||||
* Sets up userInput triggers for use
|
||||
***************************************************************************/
|
||||
static bool soundSync = false;
|
||||
|
||||
void
|
||||
SetupPads()
|
||||
{
|
||||
soundSync = Settings.SoundSync;
|
||||
PAD_Init();
|
||||
|
||||
#ifdef HW_RVL
|
||||
@ -591,11 +594,18 @@ void ReportButtons ()
|
||||
|
||||
UpdatePads();
|
||||
|
||||
Settings.TurboMode = Settings.Mute = (
|
||||
Settings.TurboMode = (
|
||||
userInput[0].pad.substickX > 70 ||
|
||||
userInput[0].WPAD_StickX(1) > 70
|
||||
); // RIGHT on c-stick and on classic controller right joystick
|
||||
|
||||
if(Settings.TurboMode) {
|
||||
Settings.SoundSync = false;
|
||||
}
|
||||
else {
|
||||
Settings.SoundSync = soundSync;
|
||||
}
|
||||
|
||||
/* Check for menu:
|
||||
* CStick left
|
||||
* OR "L+R+X+Y" (eg. Homebrew/Adapted SNES controllers)
|
||||
|
@ -477,7 +477,7 @@ DefaultSettings ()
|
||||
Settings.HDMATimingHack = 100;
|
||||
Settings.BlockInvalidVRAMAccessMaster = true;
|
||||
|
||||
// Sound defaults. On Wii this is 32Khz/16bit/Stereo
|
||||
// Sound
|
||||
Settings.SoundSync = true;
|
||||
Settings.SixteenBitSound = true;
|
||||
Settings.Stereo = true;
|
||||
|
Loading…
Reference in New Issue
Block a user