disable audio dampening on mobile
authorkoda
Sun, 28 Oct 2012 03:12:49 +0100
changeset 7847 a595d4f4837d
parent 7846 77a6abce92b5
child 7848 775a72905708
disable audio dampening on mobile
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Sun Oct 28 00:16:59 2012 +0200
+++ b/hedgewars/uWorld.pas	Sun Oct 28 03:12:49 2012 +0100
@@ -1801,6 +1801,10 @@
 begin
 if (not cHasFocus) and (GameState <> gsConfirm) then
     ParseCommand('quit', true);
+{$IFDEF MOBILE}
+// when created SDL receives an exposure event that calls UndampenAudio at full power, muting audio
+exit;
+{$ENDIF}
 
 {$IFDEF USE_VIDEO_RECORDING}
 // do not change volume during prerecording as it will affect sound in video file