mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): add SESound::Play
This commit is contained in:
parent
cb88b9eb56
commit
8c1ebb8d4a
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -367,6 +367,10 @@ int32_t SI2::PlaySoundKit(int32_t id, int32_t a2, void* handle, SoundKitProperti
|
||||
|
||||
// TODO
|
||||
|
||||
sound->Play();
|
||||
|
||||
// TODO
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user