starbound does not play sound when compiled against recent version of SDL2 (2.0.5 --> 2.28.3) while using SDL1 legacy functions SDL_OpenAudio() and SDL_PauseAudio(). Replacing them with SDL2 functions brings the sound back, see attachment.
SDL_OpenAudio() --> SDL_OpenAudioDevice()
SDL_PauseAudio() --> SDL_PauseAudioDevice()
This seems to work for the latest commit of SDL2. I'd have also preferred if this was a pull request (you can fork, modify, and open), but this is fine.
Thank you for your contribution.
starbound does not play sound when compiled against recent version of SDL2 (2.0.5 --> 2.28.3) while using SDL1 legacy functions SDL_OpenAudio() and SDL_PauseAudio(). Replacing them with SDL2 functions brings the sound back, see attachment. SDL_OpenAudio() --> SDL_OpenAudioDevice() SDL_PauseAudio() --> SDL_PauseAudioDevice()
Tested under Win11 x64 with SDL 2.0.5 and 2.28.3. StarMainApplication_sdl.zip