From 7286ecd244f398d90c9c002a4c5aedbe5ae62bad Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 23 Nov 2025 22:36:55 -0600 Subject: [PATCH] feat(sound): add SESound::IsInitialized --- src/sound/SESound.cpp | 4 ++++ src/sound/SESound.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/src/sound/SESound.cpp b/src/sound/SESound.cpp index 8932e9b..569dcc8 100644 --- a/src/sound/SESound.cpp +++ b/src/sound/SESound.cpp @@ -160,6 +160,10 @@ void SESound::Init(int32_t maxChannels, int32_t* a2, int32_t enableReverb, int32 LOG_WRITE(FMOD_OK, " "); } +int32_t SESound::IsInitialized() { + return SESound::s_Initialized == 1; +} + void SESound::Log_Write(int32_t line, const char* file, FMOD_RESULT result, const char* fmt, ...) { // TODO } diff --git a/src/sound/SESound.hpp b/src/sound/SESound.hpp index 9da30b6..51d9caa 100644 --- a/src/sound/SESound.hpp +++ b/src/sound/SESound.hpp @@ -14,6 +14,7 @@ class SESound { // Static functions static FMOD::SoundGroup* CreateSoundGroup(const char* name, int32_t maxAudible); static void Init(int32_t maxChannels, int32_t (*a2), int32_t enableReverb, int32_t enableSoftwareHRTF, int32_t* numChannels, int32_t* outputDriverIndex, const char* outputDriverName, void (*a8), int32_t a9); + static int32_t IsInitialized(); static void Log_Write(int32_t line, const char* file, FMOD_RESULT result, const char* fmt, ...); // Member variables