From 8cdbfb676ea31c6719e6f6e8ae7a44e060a5987f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 25 Aug 2013 02:47:49 +0200 Subject: GLMediaPlayer/AudioSink: Add set[Audio]Volume(float v)/get[Audio]Volume() allowing to change the audio volume. --- .../opengl/android/av/AndroidGLMediaPlayerAPI14.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/jogl/classes/jogamp/opengl/android/av') diff --git a/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java b/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java index 63d9c8d22..3ff156ae3 100644 --- a/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java +++ b/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java @@ -98,6 +98,22 @@ public class AndroidGLMediaPlayerAPI14 extends GLMediaPlayerImpl { @Override protected final boolean setPlaySpeedImpl(float rate) { + // FIXME + return false; + } + + @Override + protected final boolean setAudioVolumeImpl(float v) { + if(null != mp) { + try { + mp.setVolume(v, v); + return true; + } catch (IllegalStateException ise) { + if(DEBUG) { + ise.printStackTrace(); + } + } + } return false; } -- cgit v1.2.3