Deactivate audio session on startup

Update linphone too.
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2011-12-06 14:13:08 +01:00
parent f759b582f4
commit 7c42c524ff
2 changed files with 3 additions and 1 deletions

View file

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