From 13a81396bd5183d1f2c00c517936c54efaa61db3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 23 Sep 2023 20:44:09 +0200 Subject: Bug 1455 - GLMediaPlayer: Add isAutioMuted() query on volume and earmark audio-volume if not initialized and set it when AudioSink becomes available Setting the audio volume before initialization shall impact GLMediaPlayer when it becomes initialized. Further add a query if audio is muted, merely based on volume. --- src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java') diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java index 51724d240..3e4d589f3 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java +++ b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java @@ -545,6 +545,9 @@ public interface GLMediaPlayer extends TextureSequence { /** Returns the audio volume. */ public float getAudioVolume(); + /** Returns true if audio is muted, i.e. {@link #setAudioVolume(float)} to zero. */ + public boolean isAudioMuted(); + /** * Starts or resumes the StreamWorker decoding thread. *

-- cgit v1.2.3