--- a/project_files/HedgewarsMobile/Classes/AudioManagerController.m Sat Jan 26 23:56:10 2013 +0100
+++ b/project_files/HedgewarsMobile/Classes/AudioManagerController.m Sat Jan 26 23:57:37 2013 +0100
@@ -79,7 +79,7 @@
self.backgroundMusic.delegate = nil;
self.backgroundMusic.numberOfLoops = -1;
}
-
+
self.backgroundMusic.volume = DEFAULT_VOLUME;
[self.backgroundMusic play];
}
@@ -98,7 +98,7 @@
if (self.audioFaderQueue == nil)
self.audioFaderQueue = [[NSOperationQueue alloc] init];
-
+
MXAudioPlayerFadeOperation *fadeOut = [[MXAudioPlayerFadeOperation alloc] initFadeWithAudioPlayer:self.backgroundMusic
toVolume:0.0
overDuration:FADEOUT_DURATION];
@@ -144,30 +144,30 @@
-(void) playClickSound {
if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"sound"] boolValue] == NO)
return;
-
+
if (self.clickSound == -1)
self.clickSound = [self loadSound:@"clickSound"];
-
+
AudioServicesPlaySystemSound(self.clickSound);
}
-(void) playBackSound {
if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"sound"] boolValue] == NO)
return;
-
+
if (self.backSound == -1)
self.backSound = [self loadSound:@"backSound"];
-
+
AudioServicesPlaySystemSound(self.backSound);
}
-(void) playSelectSound {
if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"sound"] boolValue] == NO)
return;
-
+
if (self.selSound == -1)
self.selSound = [self loadSound:@"selSound"];
-
+
AudioServicesPlaySystemSound(self.selSound);
}