feat(sound): add SESound::IsInitialized

This commit is contained in:
fallenoak 2025-11-23 22:36:55 -06:00
parent e92aa20b58
commit 7286ecd244
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 5 additions and 0 deletions

View File

@ -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
}

View File

@ -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