Load UI audio effects on a background thread

This commit is contained in:
Henrik Rydgård committed 2024-10-11 11:31:17 +02:00
1 parent 049dd8bb79
commit c966067bd0
3 files changed
+31 -9

No files matched your search

+1 -2
View File
@@ -729,8 +729,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
}
#endif
// TODO: Load these in the background instead of synchronously.
g_BackgroundAudio.SFX().LoadSamples();
g_BackgroundAudio.SFX().Init();
if (!boot_filename.empty() && stateToLoad.Valid()) {
SaveState::Load(stateToLoad, -1, [](SaveState::Status status, std::string_view message, void *) {