mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
feat(sound): add SESound::Play
This commit is contained in:
3 files changed
+19
No files matched your search
@@ -505,3 +505,17 @@ int32_t SESound::Load(const char* filename, int32_t a3, FMOD::SoundGroup* soundG
|
|||||||
nullptr
|
nullptr
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SESound::Play() {
|
||||||
|
if (!this->m_internal) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO volume
|
||||||
|
|
||||||
|
this->m_internal->m_playing = 1;
|
||||||
|
|
||||||
|
if (this->m_internal->m_fmodChannel) {
|
||||||
|
this->m_internal->Play();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -35,6 +35,7 @@ class SESound {
|
|||||||
// Public member functions
|
// Public member functions
|
||||||
void CompleteLoad();
|
void CompleteLoad();
|
||||||
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();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Private static functions
|
// Private static functions
|
||||||
|
|||||||
@@ -367,6 +367,10 @@ int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, void* handle, SoundKitProperti
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
sound->Play();
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user