aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-23 02:13:40 +0200
committerSven Gothel <[email protected]>2023-05-23 02:13:40 +0200
commita792b8f61d1274ba34fed6f8e1361117bd0e703e (patch)
tree2a4a81c90de0129fcc0f1f60d253bd64bf01551b /src
parentb294b6e4f9a3dc24bcdce28f0a9c45eda8755f1f (diff)
GraphUI MediaButton: Expose AudioSink
Diffstat (limited to 'src')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java3
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) {