diff --git a/src/sound.cxx b/src/sound.cxx index 3626529..458ab6e 100644 --- a/src/sound.cxx +++ b/src/sound.cxx @@ -42,7 +42,7 @@ CSound::StopAllSounds (bool immediat, const std::set * except) if (Mix_Playing (i + 1) == SDL_TRUE) { /* FIXME: add support of fade out with emscripten */ - if (immediat && Platform::getType () == Platform::Type::SDL) + if (immediat || Platform::getType () == Platform::Type::JS) Mix_HaltChannel (i + 1); else Mix_FadeOutChannel (i + 1, 500);