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,14 +3455,14 @@ int WINAPI WinMain(
if(run_loop)
{
ProcessInput();
// no sound sync when speed is not set to 100%
while(!S9xSyncSound()) {
// no sound sync when speed is not set to 100%
while (!S9xSyncSound()) {
ResetEvent(GUI.SoundSyncEvent);
if(!PCFrameTimeIsDefault || WaitForSingleObject(GUI.SoundSyncEvent,1000) != WAIT_OBJECT_0)
if (!PCFrameTimeIsDefault || WaitForSingleObject(GUI.SoundSyncEvent, 1000) != WAIT_OBJECT_0)
S9xClearSamples();
}
}
ProcessInput();
if(GUI.rewindBufferSize
#ifdef NETPLAY_SUPPORT