AudioProcessor.StreamMetadata


class AudioProcessor.StreamMetadata


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

Summary

Constants

const AudioProcessor.StreamMetadata!

A StreamMetadata instance populated with default values.

Public constructors

StreamMetadata(positionOffsetUs: @IntRange(from = 0) Long)

Creates a new instance with the specified positionOffsetUs.

Public properties

Long

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

Constants

DEFAULT

const val DEFAULTAudioProcessor.StreamMetadata!

A StreamMetadata instance populated with default values.

Public constructors

StreamMetadata

StreamMetadata(positionOffsetUs: @IntRange(from = 0) Long)

Creates a new instance with the specified positionOffsetUs.

Parameters
positionOffsetUs: @IntRange(from = 0) Long

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

Public properties

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 offset 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 offset value will not be updated until the next call to flush.