don't play audio if switch is on silent

This commit is contained in:
Jesús A. Álvarez 2016-11-21 23:10:46 +01:00
parent 4f627541d2
commit 09a178e85c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}