- <init>
Creates a new audio timestamp poller.
- acceptTimestamp
Accepts the timestamp last polled in #maybePollTimestamp(long). If the instance
is in the error stat
- getTimestampPositionFrames
If #maybePollTimestamp(long) or #hasTimestamp() returned true, returns the
latest timestamp's positi
- getTimestampSystemTimeUs
If #maybePollTimestamp(long) or #hasTimestamp() returned true, returns the
system time at which the
- hasTimestamp
Returns whether this instance has a timestamp that can be used to calculate the
audio track position
- isTimestampAdvancing
Returns whether the timestamp appears to be advancing. If true, call
#getTimestampSystemTimeUs() and
- maybePollTimestamp
Polls the timestamp if required and returns whether it was updated. If true, the
latest timestamp is
- rejectTimestamp
Rejects the timestamp last polled in #maybePollTimestamp(long). The instance
will enter the error st
- reset
Resets polling. Should be called whenever the audio track is paused or resumed.