hedgewars/uSound.pas
changeset 15058 6c5502b9a038
parent 14961 8b848c2939da
child 15251 4576e41c0692
--- a/hedgewars/uSound.pas	Thu May 23 23:24:48 2019 +0300
+++ b/hedgewars/uSound.pas	Fri May 24 12:31:30 2019 +0200
@@ -830,7 +830,10 @@
         exit;
 
     if (chn <> -1) and (Mix_Playing(chn) <> 0) then
-        Mix_FadeOutChannel(chn, fadems);
+        if isAudioMuted then
+            Mix_HaltChannel(chn)
+        else
+            Mix_FadeOutChannel(chn, fadems);
 end;
 
 procedure PlayMusic;