fix sound on some BT devices

This commit is contained in:
Benjamin Reis 2018-07-05 13:24:21 +02:00
parent 4239b6d464
commit 4fbc902eee
2 changed files with 3 additions and 10 deletions

View file

@ -53,19 +53,12 @@
NSError *err = nil;
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord
mode:AVAudioSessionModeVoiceChat
options:AVAudioSessionCategoryOptionAllowBluetooth | AVAudioSessionCategoryOptionAllowBluetoothA2DP
options:AVAudioSessionCategoryOptionAllowBluetooth | AVAudioSessionCategoryOptionAllowBluetoothA2DP | AVAudioSessionCategoryOptionMixWithOthers
error:&err];
if (err) {
LOGE(@"Unable to change audio category because : %@", err.localizedDescription);
LOGE(@"Unable to change audio session because: %@", err.localizedDescription);
err = nil;
}
/*double sampleRate = 44100.0;
[audioSession setPreferredSampleRate:sampleRate error:&err];
if (err) {
LOGE(@"Unable to change preferred sample rate because : %@", err.localizedDescription);
err = nil;
}*/
}
- (void)reportIncomingCall:(LinphoneCall *) call withUUID:(NSUUID *)uuid handle:(NSString *)handle video:(BOOL)video; {

@ -1 +1 @@
Subproject commit 54a79f731fea61d345dfff4f8fcb2fc390c2fed7
Subproject commit d4ad04b1dcf2a321f90e315a3fdf293fccedcdb8