|
|
@ -1467,7 +1467,7 @@ private func applyAudioSessionForTTS() -> Bool { |
|
|
let hasWiredHeadphones = outputs.contains(where: { $0.portType == .headphones || $0.portType == .headsetMic }) |
|
|
let hasWiredHeadphones = outputs.contains(where: { $0.portType == .headphones || $0.portType == .headsetMic }) |
|
|
let hasBluetoothA2DP = outputs.contains(where: { $0.portType == .bluetoothA2DP || $0.portType == .bluetoothLE }) |
|
|
let hasBluetoothA2DP = outputs.contains(where: { $0.portType == .bluetoothA2DP || $0.portType == .bluetoothLE }) |
|
|
let hasBluetoothHFP = outputs.contains(where: { $0.portType == .bluetoothHFP }) |
|
|
let hasBluetoothHFP = outputs.contains(where: { $0.portType == .bluetoothHFP }) |
|
|
let hasHeadphones = hasWiredHeadphones || hasBluetoothA2DP || hasBluetoothHFP |
|
|
let hasHeadphones = self.detectHeadphonesOutput() |
|
|
let otherAudioPlaying = audioSession.isOtherAudioPlaying |
|
|
let otherAudioPlaying = audioSession.isOtherAudioPlaying |
|
|
let isRecording = (self.micCapture?.isCapturing == true) |
|
|
let isRecording = (self.micCapture?.isCapturing == true) |
|
|
self.isHeadphones = hasHeadphones |
|
|
self.isHeadphones = hasHeadphones |
|
|
|