mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 16:52:45 +03:00
feat(sound): implement SESound::CompleteLoad
This commit is contained in:
parent
d4db397379
commit
4569886186
@ -170,7 +170,13 @@ void SESound::Log_Write(int32_t line, const char* file, FMOD_RESULT result, cons
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SESound::CompleteLoad() {
|
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) {
|
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) {
|
||||||
|
|||||||
@ -5,3 +5,7 @@ SESoundInternal::SESoundInternal() {
|
|||||||
// TODO
|
// TODO
|
||||||
this->m_uniqueID = SESound::s_UniqueID++;
|
this->m_uniqueID = SESound::s_UniqueID++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SEDiskSound::CompleteNonBlockingLoad() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|||||||
@ -48,6 +48,9 @@ class SEDiskSound : public SESoundInternal {
|
|||||||
FMOD::Sound* m_fmodSound = nullptr;
|
FMOD::Sound* m_fmodSound = nullptr;
|
||||||
// TODO
|
// TODO
|
||||||
SoundCacheNode* m_cacheNode = nullptr;
|
SoundCacheNode* m_cacheNode = nullptr;
|
||||||
|
|
||||||
|
// Member functions
|
||||||
|
void CompleteNonBlockingLoad();
|
||||||
};
|
};
|
||||||
|
|
||||||
class SEMemorySound : public SESoundInternal {
|
class SEMemorySound : public SESoundInternal {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user