diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-21 10:40:53 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-21 10:40:53 +1000 |
commit | 0ec3000536fae16ede8aa85ad22aba4d9781cc9e (patch) | |
tree | 939aeec379253d842bd6ba58935a04a79dcfd4d2 /source/application/StarMainApplication_sdl.cpp | |
parent | bd783d319557b41b5865d51f306a74abbf7af18c (diff) |
processing directives for text box widgets
few other misc things
also fixed SDL audio on newer SDL vers
Diffstat (limited to 'source/application/StarMainApplication_sdl.cpp')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |