--- a/project_files/HedgewarsMobile/Classes/ObjcExports.m Sat Dec 11 14:03:49 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/ObjcExports.m Sat Dec 11 18:48:14 2010 +0100
@@ -156,12 +156,13 @@
[amvc_instance updateAmmoVisuals];
}
+/*
// http://stackoverflow.com/questions/287543/how-to-programatically-sense-the-iphone-mute-switch
BOOL isAppleDeviceMuted(void) {
if (!gAudioSessionInited) {
AudioSessionInterruptionListener inInterruptionListener = NULL;
OSStatus error;
- if ((error = AudioSessionInitialize (NULL, NULL, inInterruptionListener, NULL)))
+ if ((error = AudioSessionInitialize(NULL, NULL, inInterruptionListener, NULL)))
DLog(@"*** Error *** error in AudioSessionInitialize: %d", error);
else
gAudioSessionInited = YES;
@@ -174,7 +175,7 @@
OSStatus n = AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareOutputVolume, &propertySize, &volume);
if (n != 0)
DLog( @"AudioSessionGetProperty 'volume': %d", n );
- BOOL volumeResult = (volume == 0.0);
+ BOOL volumeResult = (volume == 0.0f);
// this checks if the device is muted
CFStringRef state;
@@ -188,3 +189,4 @@
}
return volumeResult || muteResult;
}
+*/