don't play audio if switch is on silent
This commit is contained in:
parent
4f627541d2
commit
09a178e85c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue