Sdílet prostřednictvím


AudioManager.DirectPlaybackOffloadSupported Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.DirectPlaybackSupport enum directly instead of this field.

Return value for #getDirectPlaybackSupport(AudioFormat, AudioAttributes): direct offload playback supported.

[Android.Runtime.Register("DIRECT_PLAYBACK_OFFLOAD_SUPPORTED", ApiSince=33)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.DirectPlaybackSupport enum directly instead of this field.", true)]
public const Android.Media.DirectPlaybackSupport DirectPlaybackOffloadSupported = 1;
[<Android.Runtime.Register("DIRECT_PLAYBACK_OFFLOAD_SUPPORTED", ApiSince=33)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.DirectPlaybackSupport enum directly instead of this field.", true)>]
val mutable DirectPlaybackOffloadSupported : Android.Media.DirectPlaybackSupport

Field Value

Value = 1
Attributes

Remarks

Return value for #getDirectPlaybackSupport(AudioFormat, AudioAttributes): direct offload playback supported. Compressed offload is a variant of direct playback. It is the feature that allows audio processing tasks to be done on the Android device but not on the application processor, instead, it is handled by dedicated hardware such as audio DSPs. That will allow the application processor to be idle as much as possible, which is good for power saving. Compressed offload playback supports AudioTrack.StreamEventCallback for event notifications.

Java documentation for android.media.AudioManager.DIRECT_PLAYBACK_OFFLOAD_SUPPORTED.

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