Share via


AudioManager.IsOffloadedPlaybackSupported Method

Definition

Returns whether offloaded playback of an audio format is supported on the device.

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

Parameters

format
AudioFormat

the audio format (codec, sample rate, channels) being checked.

attributes
AudioAttributes

the AudioAttributes to be used for playback

Returns

true if the given audio format can be offloaded.

Attributes

Remarks

Returns whether offloaded playback of an audio format is supported on the device.

Offloaded playback is the feature where the decoding and playback of an audio stream is not competing with other software resources. In general, it is supported by dedicated hardware, such as audio DSPs.

Note that this query only provides information about the support of an audio format, it does not indicate whether the resources necessary for the offloaded playback are available at that instant.

Java documentation for android.media.AudioManager.isOffloadedPlaybackSupported(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