Fix finiFadeOutInt

This commit is contained in:
Varun Patil 2020-05-08 12:58:27 +05:30
parent 1bc4b5e881
commit dfc9771036
1 changed files with 6 additions and 0 deletions

View File

@ -271,6 +271,12 @@ void AudioStream::updateVolume()
void AudioStream::finiFadeOutInt() void AudioStream::finiFadeOutInt()
{ {
#ifdef __EMSCRIPTEN__
fade.active.clear();
fadeIn.thread = 0;
return;
#endif
if (fade.thread) if (fade.thread)
{ {
fade.reqFini.set(); fade.reqFini.set();