@Override public void setPosition(long timecode) { position = timecode; markerTracker.checkSeekTimecode(timecode); }
/** * Clear the current seeking if its position matches the specified position * @param position The position to compare with */ public void clearSeek(long position) { if (position != NO_SEEK) { frameBuffer.setClearOnInsert(); if (pendingSeek.compareAndSet(position, NO_SEEK)) { markerTracker.checkSeekTimecode(position); } } }
private void applySeekState(long seekPosition) { state.set(AudioTrackState.SEEKING); if (useSeekGhosting) { frameBuffer.setClearOnInsert(); } else { frameBuffer.clear(); } queuedSeek.set(-1); markerTracker.checkSeekTimecode(seekPosition); }