feat(sound): implement SESound::CompleteLoad

This commit is contained in:
fallenoak 2025-11-23 23:16:32 -06:00
parent d4db397379
commit 4569886186
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 14 additions and 1 deletions

View File

@ -170,7 +170,13 @@ void SESound::Log_Write(int32_t line, const char* file, FMOD_RESULT result, cons
}
void SESound::CompleteLoad() {
// TODO
if (!this->m_internal) {
return;
}
if (this->m_internal->m_type == 1 && this->m_internal->m_loaded) {
static_cast<SEDiskSound*>(this->m_internal)->CompleteNonBlockingLoad();
}
}
int32_t SESound::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) {

View File

@ -5,3 +5,7 @@ SESoundInternal::SESoundInternal() {
// TODO
this->m_uniqueID = SESound::s_UniqueID++;
}
void SEDiskSound::CompleteNonBlockingLoad() {
// TODO
}

View File

@ -48,6 +48,9 @@ class SEDiskSound : public SESoundInternal {
FMOD::Sound* m_fmodSound = nullptr;
// TODO
SoundCacheNode* m_cacheNode = nullptr;
// Member functions
void CompleteNonBlockingLoad();
};
class SEMemorySound : public SESoundInternal {