Init sdl_sound

This commit is contained in:
Chris Speciale
2025-11-13 15:32:00 -05:00
parent 57e20208c5
commit 2695286d6e

View File

@@ -11,6 +11,12 @@
#include "emscripten.h"
#endif
#ifdef LIME_SDL_SOUND
#include "media/SDLSound.h"
#include "SDL_sound.h"
#endif
namespace lime {
@@ -36,6 +42,10 @@ namespace lime {
}
#ifdef LIME_SDL_SOUND
Sound_Init();
#endif
SDL_LogSetPriority (SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN);
currentApplication = this;
@@ -814,6 +824,10 @@ namespace lime {
applicationEvent.type = EXIT;
ApplicationEvent::Dispatch (&applicationEvent);
#ifdef LIME_SDL_SOUND
Sound_Quit ();
#endif
SDL_QuitSubSystem (initFlags);
SDL_Quit ();