diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java index 9461b3c83..927ad8f8a 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java @@ -28,6 +28,7 @@ package com.jogamp.graph.ui.shapes; import com.jogamp.opengl.GL2ES2; +import com.jogamp.common.av.AudioSink; import com.jogamp.common.util.InterruptSource; import com.jogamp.graph.curve.opengl.RegionRenderer; import com.jogamp.graph.ui.GraphShape; @@ -84,6 +85,8 @@ public class MediaButton extends TexSeqButton { public final GLMediaPlayer getGLMediaPlayer() { return (GLMediaPlayer)texSeq; } + public final AudioSink getAudioSink() { return getGLMediaPlayer().getAudioSink(); } + private final GLMediaEventListener defGLMediaEventListener = new GLMediaEventListener() { @Override public void newFrameAvailable(final GLMediaPlayer ts, final TextureFrame newFrame, final long when) { |