disable sound sync (if enabled) when using turbo mode. fixes sound

cutting off when using turbo.
This commit is contained in:
Daryl Borth 2018-08-21 08:38:50 -06:00
parent 632720be0c
commit cacc596722
2 changed files with 12 additions and 2 deletions

View File

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

View File

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