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 @@ - +