Partager via


Spatializer.IsAvailable Property

Definition

Returns whether spatialization is available.

public virtual bool IsAvailable { [Android.Runtime.Register("isAvailable", "()Z", "GetIsAvailableHandler", ApiSince=32)] get; }
[<get: Android.Runtime.Register("isAvailable", "()Z", "GetIsAvailableHandler", ApiSince=32)>]
member this.IsAvailable : bool

Property Value

true if the spatializer effect is available and capable of processing the audio for the current configuration of the device, false otherwise.

Attributes

Remarks

Returns whether spatialization is available. Reasons for spatialization being unavailable include situations where audio output is incompatible with sound spatialization, such as playback on a monophonic speaker.<br> Note that spatialization can be available, but disabled by the user, in which case this method would still return true, whereas #isEnabled() would return false.<br> Also when the feature is not supported on the device (indicated by #getImmersiveAudioLevel() returning #SPATIALIZER_IMMERSIVE_LEVEL_NONE), the return value will be false.

Java documentation for android.media.Spatializer.isAvailable().

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