Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Sound stops playing
Junior Member
noface0711's Avatar
Status: Offline
Posts: 6
Join Date: Mar 2016
Default Sound stops playing - 03-25-2016, 08: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.
Reply With Quote
Senior Member
MrMoke's Avatar
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Smile 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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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