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.

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