AudioSink.UnexpectedDiscontinuityException


public final class AudioSink.UnexpectedDiscontinuityException extends Exception


Thrown when the sink encounters an unexpected timestamp discontinuity.

Summary

Public fields

final long

The actual presentation time of a sample, in microseconds.

final long

The expected presentation time of a sample, in microseconds.

Public constructors

UnexpectedDiscontinuityException(
    long actualPresentationTimeUs,
    long expectedPresentationTimeUs
)

Creates an instance.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

actualPresentationTimeUs

public final long actualPresentationTimeUs

The actual presentation time of a sample, in microseconds.

expectedPresentationTimeUs

public final long expectedPresentationTimeUs

The expected presentation time of a sample, in microseconds.

Public constructors

UnexpectedDiscontinuityException

public UnexpectedDiscontinuityException(
    long actualPresentationTimeUs,
    long expectedPresentationTimeUs
)

Creates an instance.

Parameters
long actualPresentationTimeUs

The actual presentation time of a sample, in microseconds.

long expectedPresentationTimeUs

The expected presentation time of a sample, in microseconds.