diff options
author | Sven Gothel <[email protected]> | 2014-06-09 23:51:03 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-06-09 23:51:03 +0200 |
commit | 2d50663d43b627b5569d8d9538a0507813ac0fc6 (patch) | |
tree | a095a242b133beb3001a7a474b37e25913f08de7 /src/jogl/classes/com/jogamp | |
parent | 99230cc04b6d0143088129ccc1a20d5c8799ca67 (diff) |
GLMediaPlayer: Fix video stutter if using NullAudioSink
NullAudioSink shall return the last enqueued PTS in getPTS()
not causing a-v delta measure based on lagging audio in player.
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java b/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java index f4ea29084..1d835dd33 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java +++ b/src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java @@ -335,6 +335,12 @@ public interface AudioSink { int initialQueueSize, int queueGrowAmount, int queueLimit); /** + * Returns the {@link AudioFormat} as chosen by {@link #init(AudioFormat, float, int, int, int)}, + * i.e. it shall match the <i>requestedFormat</i>. + */ + public AudioFormat getChosenFormat(); + + /** * Returns true, if {@link #play()} has been requested <i>and</i> the sink is still playing, * otherwise false. */ |