Alice Community

Alice Community (
-   How do I...? (
-   -   Sound stops playing (

noface0711 03-25-2016 08:53 AM

Sound stops playing
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 11:20 AM

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.

All times are GMT -5. The time now is 01:12 PM.

Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.