设置音频会话后,以下代码允许蓝牙输入。
UInt32 allowBluetoothInput = 1;
AudioSessionSetProperty (kAudioSessionProperty_OverrideCategoryEnableBluetoothInput, sizeof (allowBluetoothInput), &allowBluetoothInput);
此代码看起来只允许蓝牙输入,但此代码还将音频输出路由到蓝牙设备(在蓝牙耳机的情况下)。当输入来自蓝牙设备时,我想将音频输出路由到线路输出或扬声器之外。我只想从蓝牙设备获取音频输入,我不想通过蓝牙输出音频。
这种行为可能吗?