AudioTrack.SetOffloadDelayPadding(Int32, Int32) Method

Definition

Configures the delay and padding values for the current compressed stream playing in offload mode.

[Android.Runtime.Register("setOffloadDelayPadding", "(II)V", "GetSetOffloadDelayPadding_IIHandler", ApiSince=29)]
public virtual void SetOffloadDelayPadding (int delayInFrames, int paddingInFrames);
[<Android.Runtime.Register("setOffloadDelayPadding", "(II)V", "GetSetOffloadDelayPadding_IIHandler", ApiSince=29)>]
abstract member SetOffloadDelayPadding : int * int -> unit
override this.SetOffloadDelayPadding : int * int -> unit

Parameters

delayInFrames
Int32

number of frames to be ignored at the beginning of the stream. A value of 0 indicates no delay is to be applied.

paddingInFrames
Int32

number of frames to be ignored at the end of the stream. A value of 0 of 0 indicates no padding is to be applied.

Attributes

Remarks

Configures the delay and padding values for the current compressed stream playing in offload mode. This can only be used on a track successfully initialized with AudioTrack.Builder#setOffloadedPlayback(boolean). The unit is frames, where a frame indicates the number of samples per channel, e.g. 100 frames for a stereo compressed stream corresponds to 200 decoded interleaved PCM samples.

Java documentation for android.media.AudioTrack.setOffloadDelayPadding(int, int).

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