From 2d50663d43b627b5569d8d9538a0507813ac0fc6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 9 Jun 2014 23:51:03 +0200 Subject: 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. --- src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/jogl/classes/com/jogamp/opengl/util') 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 @@ -334,6 +334,12 @@ public interface AudioSink { public boolean init(AudioFormat requestedFormat, float frameDuration, 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 requestedFormat. + */ + public AudioFormat getChosenFormat(); + /** * Returns true, if {@link #play()} has been requested and the sink is still playing, * otherwise false. -- cgit v1.2.3