mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Deactivate audio session on startup
Update linphone too.
This commit is contained in:
parent
f759b582f4
commit
7c42c524ff
2 changed files with 3 additions and 1 deletions
|
|
@ -774,6 +774,8 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
|
|||
BOOL bAudioInputAvailable= [audioSession inputIsAvailable];
|
||||
[audioSession setDelegate:self];
|
||||
|
||||
NSError* err;
|
||||
[audioSession setActive:NO error: &err];
|
||||
if(!bAudioInputAvailable){
|
||||
UIAlertView* error = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"No microphone",nil)
|
||||
message:NSLocalizedString(@"You need to plug a microphone to your device to use this application.",nil)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 27891569dd66344b618b1e5f5e986f25bcb9eeaa
|
||||
Subproject commit 2001ce8a8f32170223b182db840ef19afa9e256b
|
||||
Loading…
Add table
Reference in a new issue