project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
changeset 5699 1a9a6a7662aa
parent 5662 99083392cd4f
child 5968 4e8bb227be9a
--- a/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m	Sun Aug 28 11:50:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m	Sun Aug 28 14:50:04 2011 +0200
@@ -65,7 +65,7 @@
     AVAudioPlayer *background = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:musicString] error:nil];
 
     background.delegate = nil;
-    background.volume = 0.5f;
+    background.volume = 0.4f;
     background.numberOfLoops = -1;
     [background prepareToPlay];
     [HedgewarsAppDelegate sharedAppDelegate].backgroundMusic = background;
@@ -126,7 +126,7 @@
     // don't stop music when it is playing
     if (self.isInGame) {
         [self.backgroundMusic stop];
-        releaseAndNil(self.backgroundMusic);
+        self.backgroundMusic = nil;
         MSG_MEMCLEAN();
     }
     print_free_memory();