diff --git a/engine/src/core/com/jme3/cinematic/events/SoundEvent.java b/engine/src/core/com/jme3/cinematic/events/SoundEvent.java index 1b4c65b09..1d52f221f 100644 --- a/engine/src/core/com/jme3/cinematic/events/SoundEvent.java +++ b/engine/src/core/com/jme3/cinematic/events/SoundEvent.java @@ -34,6 +34,7 @@ package com.jme3.cinematic.events; import com.jme3.animation.LoopMode; import com.jme3.app.Application; import com.jme3.audio.AudioNode; +import com.jme3.audio.AudioSource; import com.jme3.cinematic.Cinematic; import com.jme3.export.InputCapsule; import com.jme3.export.JmeExporter; @@ -185,7 +186,7 @@ public class SoundEvent extends AbstractCinematicEvent { @Override public void onUpdate(float tpf) { - if (audioNode.getStatus() == AudioNode.Status.Stopped) { + if (audioNode.getStatus() == AudioSource.Status.Stopped) { stop(); } } diff --git a/engine/src/test/jme3test/audio/TestMusicPlayer.form b/engine/src/test/jme3test/audio/TestMusicPlayer.form index dced8a41f..2834858a0 100644 --- a/engine/src/test/jme3test/audio/TestMusicPlayer.form +++ b/engine/src/test/jme3test/audio/TestMusicPlayer.form @@ -1,4 +1,4 @@ - +
diff --git a/engine/src/test/jme3test/audio/TestMusicPlayer.java b/engine/src/test/jme3test/audio/TestMusicPlayer.java index 097d1c3d4..50fe7456a 100644 --- a/engine/src/test/jme3test/audio/TestMusicPlayer.java +++ b/engine/src/test/jme3test/audio/TestMusicPlayer.java @@ -35,7 +35,7 @@ package jme3test.audio; import com.jme3.asset.AssetInfo; import com.jme3.asset.AssetLoader; import com.jme3.audio.*; -import com.jme3.audio.AudioNode.Status; +import com.jme3.audio.AudioSource.Status; import com.jme3.audio.plugins.OGGLoader; import com.jme3.audio.plugins.WAVLoader; import com.jme3.system.AppSettings; diff --git a/engine/src/test/jme3test/audio/TestOgg.java b/engine/src/test/jme3test/audio/TestOgg.java index 7cda613d3..2d2343c11 100644 --- a/engine/src/test/jme3test/audio/TestOgg.java +++ b/engine/src/test/jme3test/audio/TestOgg.java @@ -34,6 +34,7 @@ package jme3test.audio; import com.jme3.app.SimpleApplication; import com.jme3.audio.AudioNode; +import com.jme3.audio.AudioSource; import com.jme3.audio.LowPassFilter; public class TestOgg extends SimpleApplication { @@ -54,7 +55,7 @@ public class TestOgg extends SimpleApplication { @Override public void simpleUpdate(float tpf){ - if (audioSource.getStatus() != AudioNode.Status.Playing){ + if (audioSource.getStatus() != AudioSource.Status.Playing){ audioRenderer.deleteAudioData(audioSource.getAudioData()); System.out.println("Playing with low pass filter");