我正在尝试在 Xamarin 中执行以下 AudioToolbox AudioSessionSetProperty。
UInt32 allowBluetoothInput = 1;
error = AudioSessionSetProperty (
kAudioSessionProperty_OverrideCategoryEnableBluetoothInput,
sizeof (allowBluetoothInput),
&allowBluetoothInput);
if (error) printf("couldn't set Bluetooth Input!");
有谁知道这是怎么做到的吗?先感谢您。
最佳答案
那将是:
AudioSession.OverrideCategoryEnableBluetoothInput = true;