Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Sound stops playing (http://www.alice.org/community/showthread.php?t=11451)

noface0711 03-25-2016 09: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 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.


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

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