mirror of https://github.com/snes9xgit/snes9x.git
win32: Process input after waiting for SoundSync.
This commit is contained in:
parent
fcbf046b01
commit
893c719ef4
|
@ -3455,14 +3455,14 @@ int WINAPI WinMain(
|
||||||
|
|
||||||
if(run_loop)
|
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);
|
ResetEvent(GUI.SoundSyncEvent);
|
||||||
if(!PCFrameTimeIsDefault || WaitForSingleObject(GUI.SoundSyncEvent,1000) != WAIT_OBJECT_0)
|
if (!PCFrameTimeIsDefault || WaitForSingleObject(GUI.SoundSyncEvent, 1000) != WAIT_OBJECT_0)
|
||||||
S9xClearSamples();
|
S9xClearSamples();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ProcessInput();
|
||||||
|
|
||||||
if(GUI.rewindBufferSize
|
if(GUI.rewindBufferSize
|
||||||
#ifdef NETPLAY_SUPPORT
|
#ifdef NETPLAY_SUPPORT
|
||||||
|
|
Loading…
Reference in New Issue