PDA

View Full Version : Sound stops playing


noface0711
03-25-2016, 09:53 AM
I have a student that is trying to put background noise on his project.

He already has sound files in that work fine.

He created a new method and an event to loop the sound during the entire world.

It stops playing after about 5 seconds.:confused:

MrMoke
03-25-2016, 12:20 PM
It depends on:
1) Which Version are you using.
2) How was the loop initiated.
3) How long is the sound clip

If the duration of the sound clip is 5 seconds, then your loop event isn't working.

In Alice2: You can use a "While world is Running" event which gives you the ability to add beginning, during, and ending clips.

In Alice3: You can accomplish similar results by adding a new SceneActivationListener and using Boolean variables.