2014-05-23 45 views
4

我正試圖在Xamarin中執行以下AudioToolbox AudioSessionSetProperty。Xamarin/Monotouch中的AudioSessionSetProperty

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

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

有誰知道該怎麼做?先謝謝你。

回答

3

這將是:

AudioSession.OverrideCategoryEnableBluetoothInput = true; 
+0

對上Poupou。謝謝。 – Dicer

相關問題