オーディオ セッションが設定されると、次のコードで Bluetooth 入力が許可されます。
UInt32 allowBluetoothInput = 1;
AudioSessionSetProperty (kAudioSessionProperty_OverrideCategoryEnableBluetoothInput, sizeof (allowBluetoothInput), &allowBluetoothInput);
このコードは Bluetooth 入力のみを許可しているように見えますが、このコードはオーディオ出力を Bluetooth デバイスにもルーティングします (Bluetooth ヘッドセットの場合)。入力がBluetoothデバイスから来ているときに、オーディオ出力をライン出力またはスピーカーからルーティングしたいと思います。Bluetoothデバイスからオーディオ入力を取得したいだけで、Bluetooth経由でオーディオを出力したくありません。
この動作は可能ですか?