From dbd0236203f3d969575e62097f42a2a86e2a36ae Mon Sep 17 00:00:00 2001
From: Sven Gothel
- * avgFrameDuration = {@link #getQueuedTime()} / {@link #getQueuedFrameCount()} + * avgFrameDuration = {@link #getQueuedDuration()} / {@link #getQueuedFrameCount()} **/ public float getAvgFrameDuration(); @@ -446,4 +446,16 @@ public interface AudioSink { * @see #init(AudioFormat, float, int) */ public AudioFrame enqueueData(int pts, ByteBuffer bytes, int byteCount); + + /** + * Update queue beyond {@link #enqueueData(int, ByteBuffer, int)} including audio PTS. + *
+ * Useful in case implementation only updates the buffer passively via {@link #enqueueData(int, ByteBuffer, int) enqueueing data} + * to add new data to the queue and not on a event basis. + *
+ * @return the updated current audio PTS + * @see #getPTS() + * @see #enqueueData(int, ByteBuffer, int) + */ + public int updateQueue(); } -- cgit v1.2.3