mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-08-15 09:27:29 +00:00
don't play audio if switch is on silent
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user