win32: Process input after waiting for SoundSync.

This commit is contained in:
Alias Letterman 2019-02-11 12:30:32 -06:00
parent fcbf046b01
commit 893c719ef4
1 changed files with 6 additions and 6 deletions

View File

@ -3455,8 +3455,6 @@ int WINAPI WinMain(
if(run_loop) if(run_loop)
{ {
ProcessInput();
// no sound sync when speed is not set to 100% // no sound sync when speed is not set to 100%
while (!S9xSyncSound()) { while (!S9xSyncSound()) {
ResetEvent(GUI.SoundSyncEvent); ResetEvent(GUI.SoundSyncEvent);
@ -3464,6 +3462,8 @@ int WINAPI WinMain(
S9xClearSamples(); S9xClearSamples();
} }
ProcessInput();
if(GUI.rewindBufferSize if(GUI.rewindBufferSize
#ifdef NETPLAY_SUPPORT #ifdef NETPLAY_SUPPORT
&&!Settings.NetPlay &&!Settings.NetPlay