AudioSessionSetProperty in Xamarin / Monotouch

I am 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 this? Thank you in advance.

+4
source share
1 answer

This will:

AudioSession.OverrideCategoryEnableBluetoothInput = true;
+3
source

Source: https://habr.com/ru/post/1541782/


All Articles