From 09a178e85c7ca37432f02f612f0b60819307c8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20A=2E=20A=CC=81lvarez?= Date: Mon, 21 Nov 2016 23:10:46 +0100 Subject: [PATCH] don't play audio if switch is on silent --- Mini vMac/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mini vMac/AppDelegate.m b/Mini vMac/AppDelegate.m index 3d06066..5dd80f6 100644 --- a/Mini vMac/AppDelegate.m +++ b/Mini vMac/AppDelegate.m @@ -38,7 +38,7 @@ NSString *DocumentsChangedNotification = @"documentsChanged"; [self loadEmulator:@"MacPlus4M"]; } [self initDefaults]; - [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:NULL]; + [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:NULL]; [sharedEmulator performSelector:@selector(run) withObject:nil afterDelay:0.1]; return YES; }