summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/openal
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2014-06-09 23:51:03 +0200
committerSven Gothel <sgothel@jausoft.com>2014-06-09 23:51:03 +0200
commit2d50663d43b627b5569d8d9538a0507813ac0fc6 (patch)
treea095a242b133beb3001a7a474b37e25913f08de7 /src/jogl/classes/jogamp/opengl/openal
parent99230cc04b6d0143088129ccc1a20d5c8799ca67 (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/jogamp/opengl/openal')
-rw-r--r--src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java5
1 files changed, 5 insertions, 0 deletions
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);