feat(sound): add SESound::Play

This commit is contained in:
fallenoak committed 2025-11-25 20:06:36 -06:00
1 parent cb88b9eb56
commit 8c1ebb8d4a
3 files changed
+19

No files matched your search

+14
View File
@@ -505,3 +505,17 @@ int32_t SESound::Load(const char* filename, int32_t a3, FMOD::SoundGroup* soundG
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();
}
}
+1
View File
@@ -35,6 +35,7 @@ class SESound {
// Public member functions
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);
void Play();
private:
// Private static functions
+4
View File
@@ -367,6 +367,10 @@ int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, void* handle, SoundKitProperti
// TODO
sound->Play();
// TODO
return 0;
}