diff options
author | Sven Gothel <[email protected]> | 2023-05-23 02:13:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-05-23 02:13:40 +0200 |
commit | a792b8f61d1274ba34fed6f8e1361117bd0e703e (patch) | |
tree | 2a4a81c90de0129fcc0f1f60d253bd64bf01551b /src | |
parent | b294b6e4f9a3dc24bcdce28f0a9c45eda8755f1f (diff) |
GraphUI MediaButton: Expose AudioSink
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) { |