AudioTrack.IsDirectPlaybackSupported(AudioFormat, AudioAttributes) Method

Definition

Returns whether direct playback of an audio format with the provided attributes is currently supported on the system.

[Android.Runtime.Register("isDirectPlaybackSupported", "(Landroid/media/AudioFormat;Landroid/media/AudioAttributes;)Z", "", ApiSince=29)]
public static bool IsDirectPlaybackSupported (Android.Media.AudioFormat format, Android.Media.AudioAttributes attributes);
[<Android.Runtime.Register("isDirectPlaybackSupported", "(Landroid/media/AudioFormat;Landroid/media/AudioAttributes;)Z", "", ApiSince=29)>]
static member IsDirectPlaybackSupported : Android.Media.AudioFormat * Android.Media.AudioAttributes -> bool

Parameters

format
AudioFormat

a non-null AudioFormat instance describing the format of the audio data.

attributes
AudioAttributes

a non-null AudioAttributes instance.

Returns

Boolean

true if the given audio format can be played directly.

Attributes

Remarks

Java documentation for android.media.AudioTrack.isDirectPlaybackSupported(android.media.AudioFormat, android.media.AudioAttributes).

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