|
|
|
@ -108,13 +108,13 @@ public class MicrophoneCapture: NSObject { |
|
|
|
let bluetoothHelper = ClassicBluetoothHelper.shared |
|
|
|
self.hasBluetoothDevices = !bluetoothHelper.getConnectedAudioDevices().isEmpty |
|
|
|
|
|
|
|
if self.hasBluetoothDevices { |
|
|
|
// 有蓝牙连接:末端在手机,输出端在耳机 |
|
|
|
configureAudioForBluetoothMode() |
|
|
|
} else { |
|
|
|
// 无蓝牙连接:末端和输出端都在手机 |
|
|
|
configureAudioForPhoneMode() |
|
|
|
} |
|
|
|
// if self.hasBluetoothDevices { |
|
|
|
// // 有蓝牙连接:末端在手机,输出端在耳机 |
|
|
|
// configureAudioForBluetoothMode() |
|
|
|
// } else { |
|
|
|
// // 无蓝牙连接:末端和输出端都在手机 |
|
|
|
// configureAudioForPhoneMode() |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|