mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): rename member for clarity
This commit is contained in:
parent
2a3b9587b0
commit
95d8bb926d
@ -386,7 +386,7 @@ int32_t SESound::LoadDiskSound(FMOD::System* fmodSystem, const char* filename, F
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t loaded = 0;
|
||||
int32_t nonblockingReady = 0;
|
||||
|
||||
fmodMode |= FMOD_VIRTUAL_PLAYFROMSTART | FMOD_IGNORETAGS | FMOD_NONBLOCKING;
|
||||
|
||||
@ -439,7 +439,7 @@ int32_t SESound::LoadDiskSound(FMOD::System* fmodSystem, const char* filename, F
|
||||
|
||||
// TODO
|
||||
|
||||
internal->m_loaded = loaded;
|
||||
internal->m_nonblockingReady = nonblockingReady;
|
||||
|
||||
s_LoadingCritSect.Leave();
|
||||
|
||||
@ -459,7 +459,7 @@ void SESound::CompleteLoad() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->m_internal->m_type == 1 && this->m_internal->m_loaded) {
|
||||
if (this->m_internal->m_type == 1 && this->m_internal->m_nonblockingReady) {
|
||||
static_cast<SEDiskSound*>(this->m_internal)->CompleteNonBlockingLoad();
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ class SESoundInternal : public TSLinkedNode<SESoundInternal> {
|
||||
FMOD_MODE m_fmodMode = FMOD_DEFAULT;
|
||||
uint8_t m_playing = 0;
|
||||
// TODO
|
||||
int32_t m_loaded = 0;
|
||||
int32_t m_nonblockingReady = 0;
|
||||
// TODO
|
||||
uint32_t m_uniqueID;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user