【问题标题】:AudioSessionSetProperty in Xamarin / MonotouchXamarin / Monotouch 中的 AudioSessionSetProperty
【发布时间】:2014-05-23 14:13:49
【问题描述】:

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

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

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

有人知道怎么做吗?提前谢谢你。

【问题讨论】:

    标签: ios xamarin.ios xamarin audiounit


    【解决方案1】:

    那就是:

    AudioSession.OverrideCategoryEnableBluetoothInput = true;
    

    【讨论】:

    • 正确的 Poupou。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多