Browse Source

- added a pause method to AudioNode

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8433 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 14 years ago
parent
commit
319ccc62b4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      engine/src/core/com/jme3/audio/AudioNode.java

+ 7 - 0
engine/src/core/com/jme3/audio/AudioNode.java

@@ -259,6 +259,13 @@ public class AudioNode extends Node {
         getRenderer().stopSource(this);
     }
     
+    /**
+     * Pause the audio that was started with {@link AudioNode#play() }.
+     */
+    public void pause(){
+        getRenderer().pauseSource(this);
+    }
+    
     /**
      * Do not use.
      */