mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 23:59:53 +03:00
feat(sound): rename member for clarity
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user