mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): implement SESound::ProcessReadyDiskSounds
This commit is contained in:
parent
05a6b15eeb
commit
cb88b9eb56
@ -185,7 +185,7 @@ int32_t SESound::Heartbeat(const void* data, void* param) {
|
||||
|
||||
// TODO
|
||||
|
||||
SESound::ProcessLoadedDiskSounds();
|
||||
SESound::ProcessReadyDiskSounds();
|
||||
|
||||
// TODO
|
||||
|
||||
@ -464,8 +464,11 @@ void SESound::Log_Write(int32_t line, const char* file, FMOD_RESULT result, cons
|
||||
// TODO
|
||||
}
|
||||
|
||||
void SESound::ProcessLoadedDiskSounds() {
|
||||
// TODO
|
||||
void SESound::ProcessReadyDiskSounds() {
|
||||
while (auto diskSound = SESound::s_ReadyDiskSounds.Head()) {
|
||||
SESound::s_ReadyDiskSounds.UnlinkNode(diskSound);
|
||||
diskSound->CompleteNonBlockingLoad();
|
||||
}
|
||||
}
|
||||
|
||||
void SESound::CompleteLoad() {
|
||||
|
||||
@ -39,7 +39,7 @@ class SESound {
|
||||
private:
|
||||
// Private static functions
|
||||
static int32_t LoadDiskSound(FMOD::System* fmodSystem, const char* filename, FMOD_MODE fmodMode, SESound* sound, FMOD::SoundGroup* fmodSoundGroup1, FMOD::SoundGroup* fmodSoundGroup2, bool a7, int32_t a8, uint32_t a9, int32_t a10, uint32_t decodeBufferSize, int32_t a12, float a13, float a14, float a15, float* a16);
|
||||
static void ProcessLoadedDiskSounds();
|
||||
static void ProcessReadyDiskSounds();
|
||||
|
||||
// Private member variables
|
||||
SESoundInternal* m_internal = nullptr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user