From 0ec3000536fae16ede8aa85ad22aba4d9781cc9e Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 21 Jun 2023 10:40:53 +1000 Subject: processing directives for text box widgets few other misc things also fixed SDL audio on newer SDL vers --- source/application/StarMainApplication_sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/application/StarMainApplication_sdl.cpp') diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 503a8c4..12ea377 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -277,7 +277,7 @@ public: }; SDL_AudioSpec obtained = {}; - if (SDL_OpenAudio(&desired, &obtained) < 0) { + if (SDL_OpenAudioDevice(NULL, 0, &desired, &obtained, 0) < 0) { Logger::error("Application: Could not open audio device, no sound available!"); } else if (obtained.freq != desired.freq || obtained.channels != desired.channels || obtained.format != desired.format) { SDL_CloseAudio(); -- cgit v1.2.3