feat(sound): add SESound::GetUserData

This commit is contained in:
fallenoak 2025-11-26 19:37:38 -06:00
parent 94c825bb04
commit 13ecfda19f
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 9 additions and 0 deletions

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;

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();