Skip to content

Commit 2323659

Browse files
initialize curFPS to a reasonable value
Fixes audioGetNumSamplesOut sometimes breaking audio completely on start because of using the value uninitialized. Full credit to Arisotura for somehow figuring this one out
1 parent 7a7c6fd commit 2323659

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/frontend/qt_sdl/EmuInstance.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ EmuInstance::EmuInstance(int inst) : deleting(false),
9999
targetFPS = 60.0;
100100
}
101101
else targetFPS = val;
102+
curFPS = targetFPS;
102103

103104
val = globalCfg.GetDouble("FastForwardFPS");
104105
if (val == 0.0)

0 commit comments

Comments
 (0)