From 319ccc62b4050229622714955c5db26c8ddb5e00 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 17 Oct 2011 21:27:09 +0000 Subject: [PATCH] - added a pause method to AudioNode git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8433 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/audio/AudioNode.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/src/core/com/jme3/audio/AudioNode.java b/engine/src/core/com/jme3/audio/AudioNode.java index aff2f756d..47917cd59 100644 --- a/engine/src/core/com/jme3/audio/AudioNode.java +++ b/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. */