From d4c69da2a18d25c3b821ccb47f5bb658fc44b147 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 17 Oct 2011 21:29:39 +0000 Subject: [PATCH] - removed deprecated usage of audioRenderer in soundTrack git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8434 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/cinematic/events/SoundTrack.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engine/src/core/com/jme3/cinematic/events/SoundTrack.java b/engine/src/core/com/jme3/cinematic/events/SoundTrack.java index 92642c418..9caeffa39 100644 --- a/engine/src/core/com/jme3/cinematic/events/SoundTrack.java +++ b/engine/src/core/com/jme3/cinematic/events/SoundTrack.java @@ -49,8 +49,7 @@ import java.io.IOException; public class SoundTrack extends AbstractCinematicEvent { protected String path; - protected AudioNode audioNode; - protected AudioRenderer audioRenderer; + protected AudioNode audioNode; protected boolean stream = false; /** @@ -108,26 +107,27 @@ public class SoundTrack extends AbstractCinematicEvent { } @Override - public void initEvent(Application app, Cinematic cinematic) { - audioRenderer = app.getAudioRenderer(); - audioNode = new AudioNode(audioRenderer, app.getAssetManager(), path, stream); + public void initEvent(Application app, Cinematic cinematic) { + audioNode = new AudioNode(app.getAssetManager(), path, stream); setLoopMode(loopMode); } @Override public void onPlay() { - audioRenderer.playSource(audioNode); + audioNode.play(); + } @Override public void onStop() { - audioRenderer.stopSource(audioNode); + audioNode.stop(); + } @Override public void onPause() { - audioRenderer.pauseSource(audioNode); + audioNode.pause(); } @Override