mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-06 06:39:53 +03:00
fix(sound): correct logic in SESound::IsPlaying
This commit is contained in:
1 file changed
+4
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user