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/jogamp/opengl/openal/av/ALAudioSink.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/jogamp/opengl/openal/av') diff --git a/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java b/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java index eeaaa5872..da6c8fde7 100644 --- a/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java +++ b/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java @@ -396,6 +396,11 @@ public class ALAudioSink implements AudioSink { return true; } + @Override + public final AudioFormat getChosenFormat() { + return chosenFormat; + } + private static int[] concat(int[] first, int[] second) { final int[] result = Arrays.copyOf(first, first.length + second.length); System.arraycopy(second, 0, result, first.length, second.length); -- cgit v1.2.3