From a792b8f61d1274ba34fed6f8e1361117bd0e703e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 23 May 2023 02:13:40 +0200 Subject: GraphUI MediaButton: Expose AudioSink --- src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/graphui/classes/com') 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) { -- cgit v1.2.3