mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): add SESound::GetUserData
This commit is contained in:
parent
94c825bb04
commit
13ecfda19f
@ -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() {
|
bool SESound::IsPlaying() {
|
||||||
if (!this->m_internal) {
|
if (!this->m_internal) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@ -36,6 +36,7 @@ class SESound {
|
|||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
void CompleteLoad();
|
void CompleteLoad();
|
||||||
|
SEUserData* GetUserData();
|
||||||
bool IsPlaying();
|
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);
|
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();
|
void Play();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user