diff options
author | Sven Gothel <sgothel@jausoft.com> | 2014-06-09 23:51:03 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2014-06-09 23:51:03 +0200 |
commit | 2d50663d43b627b5569d8d9538a0507813ac0fc6 (patch) | |
tree | a095a242b133beb3001a7a474b37e25913f08de7 /src/jogl/classes/jogamp/opengl/openal | |
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/jogamp/opengl/openal')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java | 5 |
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); |