project_files/HedgewarsMobile/Classes/AudioManagerController.m
changeset 6667 142fe596e75e
parent 6656 6aeaba3ee584
child 6700 e04da46ee43c
--- a/project_files/HedgewarsMobile/Classes/AudioManagerController.m	Sat Feb 11 05:13:56 2012 +0100
+++ b/project_files/HedgewarsMobile/Classes/AudioManagerController.m	Sat Feb 11 05:48:33 2012 +0100
@@ -68,6 +68,9 @@
 }
 
 +(void) fadeOutBackgroundMusic {
+    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"music"] boolValue] == NO)
+        return;
+
     if (audioFaderQueue == nil)
         audioFaderQueue = [[NSOperationQueue alloc] init];
     if (backgroundMusic == nil)
@@ -79,6 +82,9 @@
 }
 
 +(void) fadeInBackgroundMusic {
+    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"music"] boolValue] == NO)
+        return;
+
     if (audioFaderQueue == nil)
         audioFaderQueue = [[NSOperationQueue alloc] init];
     if (backgroundMusic == nil)