be more gentle when you stop channels at the end of the game
authorkoda
Sun, 13 Nov 2011 21:28:11 +0100
changeset 6367 a7fbf18b2d55
parent 6365 c992df555afb
child 6372 b392132a588c
child 6373 67de1f88d8f9
be more gentle when you stop channels at the end of the game
hedgewars/uSound.pas
--- a/hedgewars/uSound.pas	Sun Nov 13 21:18:33 2011 +0100
+++ b/hedgewars/uSound.pas	Sun Nov 13 21:28:11 2011 +0100
@@ -307,7 +307,7 @@
     if (not isSoundEnabled) or fastUntilLag or ((LastVoice.snd = snd) and  (LastVoice.voicepack = voicepack)) then exit;
     if (snd = sndVictory) or (snd = sndFlawless) then
         begin
-        Mix_HaltChannel(-1);
+        Mix_FadeOutChannel(-1, 800);
         for i:= 0 to 7 do VoiceList[i].snd:= sndNone;
         LastVoice.snd:= sndNone;
         end;