AudioProcessor.StreamMetadata


public final class AudioProcessor.StreamMetadata


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

Summary

Constants

static final AudioProcessor.StreamMetadata

A StreamMetadata instance populated with default values.

Public fields

final long

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

Public constructors

StreamMetadata(@IntRange(from = 0) long positionOffsetUs)

Creates a new instance with the specified positionOffsetUs.

Constants

DEFAULT

public static final AudioProcessor.StreamMetadata DEFAULT

A StreamMetadata instance populated with default values.

Public fields

positionOffsetUs

public final long positionOffsetUs

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.

Public constructors

StreamMetadata

public StreamMetadata(@IntRange(from = 0) long positionOffsetUs)

Creates a new instance with the specified positionOffsetUs.

Parameters
@IntRange(from = 0) long positionOffsetUs

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