AudioProcessor.StreamMetadata


class AudioProcessor.StreamMetadata


Record class that holds information about the underlying stream being processed by an AudioProcessor

Summary

Nested types

A builder for StreamMetadata.

Constants

const AudioProcessor.StreamMetadata!

A StreamMetadata instance populated with default values.

Public constructors

StreamMetadata(positionOffsetUs: Long)

This function is deprecated.

Use Builder instead.

Public functions

AudioProcessor.StreamMetadata.Builder!

Creates a Builder populated with the values from this object.

Public properties

Any?

The period UID of the current playback this audio processor is used for, or null if undefined.

Long

The position of the underlying stream in microseconds from which the processor will start receiving input buffers after a call to flush.

Timeline!

The Timeline of the current playback this audio processor is used for, or EMPTY if undefined.

Constants

DEFAULT

const val DEFAULTAudioProcessor.StreamMetadata!

A StreamMetadata instance populated with default values.

Public constructors

StreamMetadata

StreamMetadata(positionOffsetUs: Long)

Public functions

buildUpon

fun buildUpon(): AudioProcessor.StreamMetadata.Builder!

Creates a Builder populated with the values from this object.

Public properties

periodUid

val periodUidAny?

The period UID of the current playback this audio processor is used for, or null if undefined.

The value is up-to-date at the time of the flush call, but might change due to updates to the media structure. In that case, the value will not be updated until the next call to flush.

positionOffsetUs

val positionOffsetUsLong

The position of the underlying stream in microseconds from which the processor will start receiving input buffers after a call to flush.

The position offset is aligned to the Window start position.

The value is up-to-date at the time of the flush call, but might change due to updates to the media structure. In that case, the value will not be updated until the next call to flush.

timeline

val timelineTimeline!

The Timeline of the current playback this audio processor is used for, or EMPTY if undefined.

The value is up-to-date at the time of the flush call, but might change due to updates to the media structure. In that case, the value will not be updated until the next call to flush.