hedgewars/uMobile.pas
changeset 4461 2f4f5d649bcd
parent 4437 05192cdbce9b
child 4507 0f9b86942c19
--- a/hedgewars/uMobile.pas	Sun Dec 05 00:05:21 2010 +0100
+++ b/hedgewars/uMobile.pas	Sun Dec 05 02:44:20 2010 +0100
@@ -30,9 +30,11 @@
 procedure replayFinished; cdecl; external;
 procedure updateVisualsNewTurn; cdecl; external;
 function  isApplePhone: Boolean; cdecl; external;
+function  isAppleDeviceMuted: Boolean; cdecl; external;
 procedure AudioServicesPlaySystemSound(num: LongInt); cdecl; external;
 {$ENDIF}
 function  isPhone: Boolean; inline;
+function  isDeviceMute: Boolean; inline;
 procedure performRumble; inline;
 procedure perfExt_AddProgress; inline;
 procedure perfExt_FinishProgress; inline;
@@ -52,6 +54,14 @@
     exit(false);
 end;
 
+function isDeviceMute: Boolean; inline;
+begin
+{$IFDEF IPHONEOS}
+    exit(isAppleDeviceMuted());
+{$ENDIF}
+    exit(false);
+end;
+
 procedure performRumble; inline;
 begin
 {$IFDEF IPHONEOS}