docs/doc/reference/com/google/android/exoplayer2/audio/AudioSink.UnexpectedDiscontinuityException.html
Package com.google.android.exoplayer2.audio
All Implemented Interfaces:SerializableEnclosing interface:AudioSink
public static final classAudioSink.UnexpectedDiscontinuityExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")
Thrown when the sink encounters an unexpected timestamp discontinuity. See Also:Serialized Form
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | actualPresentationTimeUs |
The actual presentation time of a sample, in microseconds.
|
| long | expectedPresentationTimeUs |
The expected presentation time of a sample, in microseconds.
|
Constructors | Constructor | Description |
| --- | --- |
| UnexpectedDiscontinuityException(long actualPresentationTimeUs, long expectedPresentationTimeUs) |
Creates an instance.
|
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.
-
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.