diff options
author | Sven Gothel <[email protected]> | 2023-09-23 20:44:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-23 20:44:09 +0200 |
commit | 13a81396bd5183d1f2c00c517936c54efaa61db3 (patch) | |
tree | 5ad6a6d5b808092ef013c8413e187382d242d5f6 /src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | |
parent | 84b26f9efcd62cc8c41bf3cd867482080d16d7a0 (diff) |
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.
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 <i>StreamWorker</i> decoding thread. * <p> |