Browse Source

Minor code style tweaks

Alex Szpakowski 4 years ago
parent
commit
140c1f38c0
1 changed files with 11 additions and 8 deletions
  1. 11 8
      src/common/ios.mm

+ 11 - 8
src/common/ios.mm

@@ -220,26 +220,29 @@ static int dropFileEventFilter(void *userdata, SDL_Event *event)
 
 
 - (void)audioSessionInterruption:(NSNotification *)note
 - (void)audioSessionInterruption:(NSNotification *)note
 {
 {
-	@synchronized (self) {
+	@synchronized (self)
+	{
 		auto audio = love::Module::getInstance<love::audio::Audio>(love::Module::M_AUDIO);
 		auto audio = love::Module::getInstance<love::audio::Audio>(love::Module::M_AUDIO);
-		if (!audio) {
+		if (!audio)
+		{
 			NSLog(@"LoveAudioInterruptionListener could not get love audio module");
 			NSLog(@"LoveAudioInterruptionListener could not get love audio module");
 			return;
 			return;
 		}
 		}
 		NSNumber *type = note.userInfo[AVAudioSessionInterruptionTypeKey];
 		NSNumber *type = note.userInfo[AVAudioSessionInterruptionTypeKey];
-		if (type.unsignedIntegerValue == AVAudioSessionInterruptionTypeBegan) {
+		if (type.unsignedIntegerValue == AVAudioSessionInterruptionTypeBegan)
 			audio->pauseContext();
 			audio->pauseContext();
-		} else {
+		else
 			audio->resumeContext();
 			audio->resumeContext();
-		}
 	}
 	}
 }
 }
 
 
 - (void)applicationBecameActive:(NSNotification *)note
 - (void)applicationBecameActive:(NSNotification *)note
 {
 {
-	@synchronized (self) {
+	@synchronized (self)
+	{
 		auto audio = love::Module::getInstance<love::audio::Audio>(love::Module::M_AUDIO);
 		auto audio = love::Module::getInstance<love::audio::Audio>(love::Module::M_AUDIO);
-		if (!audio) {
+		if (!audio)
+		{
 			NSLog(@"ERROR:could not get love audio module");
 			NSLog(@"ERROR:could not get love audio module");
 			return;
 			return;
 		}
 		}
@@ -247,7 +250,7 @@ static int dropFileEventFilter(void *userdata, SDL_Event *event)
 	}
 	}
 }
 }
 
 
-@end
+@end // LoveAudioInterruptionListener
 
 
 namespace love
 namespace love
 {
 {