Class AudioSink.UnexpectedDiscontinuityException

  • All Implemented Interfaces:
    Serializable
    Enclosing interface:
    AudioSink

    public static final class AudioSink.UnexpectedDiscontinuityException
    extends Exception
    Thrown when the sink encounters an unexpected timestamp discontinuity.
    See Also:
    Serialized Form
    • Field Detail

      • 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.
    • Constructor Detail

      • UnexpectedDiscontinuityException

        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.