mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(sound): correct logic in SESound::IsPlaying
This commit is contained in:
parent
9f47aea413
commit
d353be2a22
@ -551,12 +551,11 @@ bool SESound::IsPlaying() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this->m_internal->m_fmodChannel) {
|
||||
return false;
|
||||
}
|
||||
bool isPlaying = this->m_internal->m_playing;
|
||||
|
||||
bool isPlaying;
|
||||
this->m_internal->m_fmodChannel->isPlaying(&isPlaying);
|
||||
if (this->m_internal->m_fmodChannel) {
|
||||
this->m_internal->m_fmodChannel->isPlaying(&isPlaying);
|
||||
}
|
||||
|
||||
return isPlaying;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user