public final class

AudioSink.UnexpectedDiscontinuityException

extends java.lang.Exception

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳androidx.media3.exoplayer.audio.AudioSink.UnexpectedDiscontinuityException

Overview

Thrown when the sink encounters an unexpected timestamp discontinuity.

Summary

Fields
public final longactualPresentationTimeUs

The actual presentation time of a sample, in microseconds.

public final longexpectedPresentationTimeUs

The expected presentation time of a sample, in microseconds.

Constructors
publicUnexpectedDiscontinuityException(long actualPresentationTimeUs, long expectedPresentationTimeUs)

Creates an instance.

Methods
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public final long actualPresentationTimeUs

The actual presentation time of a sample, in microseconds.

public final long expectedPresentationTimeUs

The expected presentation time of a sample, in microseconds.

Constructors

public UnexpectedDiscontinuityException(long actualPresentationTimeUs, long expectedPresentationTimeUs)

Creates an instance.

Parameters:

actualPresentationTimeUs: The actual presentation time of a sample, in microseconds.
expectedPresentationTimeUs: The expected presentation time of a sample, in microseconds.