mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-24 23:07:15 +03:00
feat(sound): add SESound::GetUserData
This commit is contained in:
2 files changed
+9
No files matched your search
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user