project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 6000 dbcebcd3d79f
parent 5700 f0960a88ab0e
child 6074 047eaed35cbb
--- a/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Fri Sep 23 22:42:30 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Sat Sep 24 00:54:47 2011 +0200
@@ -22,6 +22,7 @@
 #import "GeneralSettingsViewController.h"
 #import "CommodityFunctions.h"
 
+
 @implementation GeneralSettingsViewController
 
 
@@ -44,7 +45,7 @@
     NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
     [userDefaults synchronize];
     if ([[userDefaults objectForKey:@"music"] boolValue] == NO)
-        [HedgewarsAppDelegate stopBackgroundMusic];
+        [AudioManagerController stopBackgroundMusic];
 
     [super viewWillDisappear:animated];
 }
@@ -64,7 +65,7 @@
             [theOtherSwitch setOn:NO animated:YES];
 
             if (theOtherSwitch.on)
-                [HedgewarsAppDelegate pauseBackgroundMusic];
+                [AudioManagerController pauseBackgroundMusic];
             break;
         case 20:    //musicSwitch
             // if switch above (sound) is off, never turn on
@@ -76,9 +77,9 @@
                 [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"music"];
 
             if (theSwitch.on)
-                [HedgewarsAppDelegate playBackgroundMusic];
+                [AudioManagerController playBackgroundMusic];
             else
-                [HedgewarsAppDelegate pauseBackgroundMusic];
+                [AudioManagerController pauseBackgroundMusic];
 
             break;
         case 30:    //alternateSwitch