diff options
author | Sven Gothel <[email protected]> | 2023-10-06 12:19:59 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-06 12:19:59 +0200 |
commit | 8376f21f2b6f25f3fc8ff2688ef49a2e9c91f966 (patch) | |
tree | 0a7117e602b3effe50d64b1f16ec110ed6e40a60 /src/java/com/jogamp/common/av/AudioSink.java | |
parent | ba3748eb1d478d4377ea003f909c668db90a82c3 (diff) |
AudioSink/TimeFrame1: API doc: Add notes about integer stored milliseconds for PTS and duration, i.e. good for 24.855 days
Diffstat (limited to 'src/java/com/jogamp/common/av/AudioSink.java')
-rw-r--r-- | src/java/com/jogamp/common/av/AudioSink.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/av/AudioSink.java b/src/java/com/jogamp/common/av/AudioSink.java index 1b7b736..f3ed5a8 100644 --- a/src/java/com/jogamp/common/av/AudioSink.java +++ b/src/java/com/jogamp/common/av/AudioSink.java @@ -404,11 +404,22 @@ public interface AudioSink { /** * Return the current audio presentation timestamp (PTS) in milliseconds. + * <p> + * In case implementation updates the audio buffer passively, consider using {@link #updateQueue()}. + * </p> + * <p> + * The relative millisecond PTS since start of the presentation stored in integer + * covers a time span of 2'147'483'647 ms (see {@link Integer#MAX_VALUE} + * or 2'147'483 seconds or 24.855 days. + * </p> + * @see #updateQueue() + * @see #enqueueData(int, ByteBuffer, int) */ public int getPTS(); /** * Return the last buffered audio presentation timestamp (PTS) in milliseconds. + * @see #getPTS() */ public int getLastBufferedPTS(); |