feat(sound): add SESound::GetUserData

This commit is contained in:
fallenoak committed 2025-11-26 19:37:38 -06:00
1 parent 94c825bb04
commit 13ecfda19f
2 files changed
+9

No files matched your search

+8
View File
@@ -538,6 +538,14 @@ void SESound::CompleteLoad() {
}
}
SEUserData* SESound::GetUserData() {
if (!this->m_internal) {
return nullptr;
}
return this->m_internal->m_userData;
}
bool SESound::IsPlaying() {
if (!this->m_internal) {
return 0;
+1
View File
@@ -36,6 +36,7 @@ class SESound {
// Public member functions
void CompleteLoad();
SEUserData* GetUserData();
bool IsPlaying();
int32_t Load(const char* filename, int32_t a3, FMOD::SoundGroup* soundGroup1, FMOD::SoundGroup* soundGroup2, bool a6, bool a7, uint32_t a8, int32_t a9, uint32_t a10);
void Play();