Init sdl_sound
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user