mirror of https://github.com/snes9xgit/snes9x.git
win32: clear sound buffer when not using default frame time (fixes #310)
This commit is contained in:
parent
ca9ec5ff19
commit
1cd8d65705
|
@ -3620,9 +3620,9 @@ int WINAPI WinMain(
|
|||
ProcessInput();
|
||||
|
||||
// no sound sync when speed is not set to 100%
|
||||
while(PCFrameTimeIsDefault && !S9xSyncSound()) {
|
||||
while(!S9xSyncSound()) {
|
||||
ResetEvent(GUI.SoundSyncEvent);
|
||||
if(WaitForSingleObject(GUI.SoundSyncEvent,1000) != WAIT_OBJECT_0)
|
||||
if(!PCFrameTimeIsDefault || WaitForSingleObject(GUI.SoundSyncEvent,1000) != WAIT_OBJECT_0)
|
||||
S9xClearSamples();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue