AudioAttributes.Builder.SetSpatializationBehavior(Int32) Method

Definition

Sets the behavior affecting whether spatialization will be used.

[Android.Runtime.Register("setSpatializationBehavior", "(I)Landroid/media/AudioAttributes$Builder;", "GetSetSpatializationBehavior_IHandler", ApiSince=32)]
public virtual Android.Media.AudioAttributes.Builder SetSpatializationBehavior(int sb);
[<Android.Runtime.Register("setSpatializationBehavior", "(I)Landroid/media/AudioAttributes$Builder;", "GetSetSpatializationBehavior_IHandler", ApiSince=32)>]
abstract member SetSpatializationBehavior : int -> Android.Media.AudioAttributes.Builder
override this.SetSpatializationBehavior : int -> Android.Media.AudioAttributes.Builder

Parameters

sb
Int32

the spatialization behavior. Value is one of the following: AudioAttributes.SPATIALIZATION_BEHAVIOR_AUTO AudioAttributes.SPATIALIZATION_BEHAVIOR_NEVER

Returns

the same Builder instance. This value cannot be null.

Attributes

Remarks

Sets the behavior affecting whether spatialization will be used.

Android reference for android.media.AudioAttributes.Builder.setSpatializationBehavior.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to