mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-09-27 12:59:00 +00:00
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 loadEmulator:@"MacPlus4M"];
|
||||||
}
|
}
|
||||||
[self initDefaults];
|
[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];
|
[sharedEmulator performSelector:@selector(run) withObject:nil afterDelay:0.1];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user