Dicer
Dicer

Reputation: 426

AudioSessionSetProperty in Xamarin / Monotouch

I'm trying to do the following AudioToolbox AudioSessionSetProperty in Xamarin.

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

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

Does anyone know how to do that? Thank you in advance.

Upvotes: 4

Views: 180

Answers (1)

poupou
poupou

Reputation: 43553

That would be:

AudioSession.OverrideCategoryEnableBluetoothInput = true;

Upvotes: 3

Related Questions