Home | History | Annotate | Download | only in versions

Lines Matching full:monotonic

293 <p>You can use the value of {@code nanoTime} in the {@link android.media.AudioTimestamp} (which is monotonic) to find the closest associated video frame compared to {@code framePosition} so you can drop, duplicate, or interpolate video frames to match the audio. Alternatively, you can determine the delta time between the value of {@code nanoTime} and a future video frame?s expected time (with consideration for the sample rate) to predict which audio frame is expected at the same moment as a video frame.</p>