在Xamarin/Monotouch中的AudioSessionSetProperty

4

我正在尝试在Xamarin中执行以下AudioToolbox AudioSessionSetProperty操作。

UInt32 allowBluetoothInput = 1;
error = AudioSessionSetProperty (
    kAudioSessionProperty_OverrideCategoryEnableBluetoothInput,
    sizeof (allowBluetoothInput),
    &allowBluetoothInput);

if (error) printf("couldn't set Bluetooth Input!");

有人知道如何做吗?提前感谢您。

1个回答

3
那将是:
AudioSession.OverrideCategoryEnableBluetoothInput = true;

非常正确,Poupou。谢谢。 - Dicer

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接