mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
fix sound on some BT devices
This commit is contained in:
parent
4239b6d464
commit
4fbc902eee
2 changed files with 3 additions and 10 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue