mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32: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
|
// TODO
|
||||||
|
|
||||||
SESound::ProcessLoadedDiskSounds();
|
SESound::ProcessReadyDiskSounds();
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
@ -464,8 +464,11 @@ void SESound::Log_Write(int32_t line, const char* file, FMOD_RESULT result, cons
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void SESound::ProcessLoadedDiskSounds() {
|
void SESound::ProcessReadyDiskSounds() {
|
||||||
// TODO
|
while (auto diskSound = SESound::s_ReadyDiskSounds.Head()) {
|
||||||
|
SESound::s_ReadyDiskSounds.UnlinkNode(diskSound);
|
||||||
|
diskSound->CompleteNonBlockingLoad();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SESound::CompleteLoad() {
|
void SESound::CompleteLoad() {
|
||||||
|
|||||||
@ -39,7 +39,7 @@ class SESound {
|
|||||||
private:
|
private:
|
||||||
// Private static functions
|
// 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 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
|
// Private member variables
|
||||||
SESoundInternal* m_internal = nullptr;
|
SESoundInternal* m_internal = nullptr;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user