Alice Community  

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

Reply
 
Thread Tools Display Modes
Problem With Background Music On Alice
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default Problem With Background Music On Alice - 01-16-2011, 08:51 PM

Hello everybody. I have a little problem. I want to add background music to an Alice video I am making, but every time I play the world, Alice throws an error. If you could provide some information on how to fix this problem, I would really appreciate it.

Error during simulation.


If it will help, here is the super long error code.

Code:
Alice version: 2.2  6/10/2009



Throwable that caused the error:

java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.

	at javax.sound.sampled.FloatControl.setValue(Unknown Source)

	at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.setValue(Unknown Source)

	at com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSoundOutput.java:157)

	at com.sun.media.renderer.audio.JavaSoundRenderer$GCA.setLevel(JavaSoundRenderer.java:202)

	at edu.cmu.cs.stage3.media.jmfmedia.Player.updateVolumeLevel(Player.java:102)

	at edu.cmu.cs.stage3.media.jmfmedia.Player.setVolumeLevel(Player.java:109)

	at edu.cmu.cs.stage3.alice.core.response.SoundResponse$RuntimeSoundResponse.updateVolumeLevel(SoundResponse.java:92)

	at edu.cmu.cs.stage3.alice.core.response.SoundResponse$RuntimeSoundResponse.prologue(SoundResponse.java:150)

	at edu.cmu.cs.stage3.alice.core.response.DoTogether$RuntimeDoTogether.prologue(DoTogether.java:53)

	at edu.cmu.cs.stage3.alice.core.response.DoInOrder$RuntimeDoInOrder.childPrologueIfNecessary(DoInOrder.java:52)

	at edu.cmu.cs.stage3.alice.core.response.DoInOrder$RuntimeDoInOrder.update(DoInOrder.java:97)

	at edu.cmu.cs.stage3.alice.core.response.CallToUserDefinedResponse$RuntimeCallToUserDefinedResponse.update(CallToUserDefinedResponse.java:86)

	at edu.cmu.cs.stage3.alice.core.behavior.TriggerBehavior.internalSchedule(TriggerBehavior.java:69)

	at edu.cmu.cs.stage3.alice.core.Behavior.schedule(Behavior.java:226)

	at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehaviors(Sandbox.java:70)

	at edu.cmu.cs.stage3.alice.core.World.scheduleBehaviors(World.java:444)

	at edu.cmu.cs.stage3.alice.core.World.schedule(World.java:486)

	at edu.cmu.cs.stage3.alice.core.clock.DefaultClock.schedule(DefaultClock.java:99)

	at edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool$7.run(AuthoringTool.java:702)

	at edu.cmu.cs.stage3.alice.authoringtool.util.DefaultScheduler.simulateOnce(DefaultScheduler.java:115)

	at edu.cmu.cs.stage3.alice.authoringtool.util.DefaultScheduler.run(DefaultScheduler.java:76)

	at edu.cmu.cs.stage3.scheduler.AbstractScheduler.run(AbstractScheduler.java:45)

	at java.awt.event.InvocationEvent.dispatch(Unknown Source)

	at java.awt.EventQueue.dispatchEvent(Unknown Source)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.Dialog$1.run(Unknown Source)

	at java.awt.Dialog$2.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.awt.Dialog.show(Unknown Source)

	at java.awt.Component.show(Unknown Source)

	at java.awt.Component.setVisible(Unknown Source)

	at edu.cmu.cs.stage3.swing.DialogManager.showModalDialog(DialogManager.java:60)

	at edu.cmu.cs.stage3.swing.DialogManager.showDialog(DialogManager.java:128)

	at edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool.play(AuthoringTool.java:5159)

	at edu.cmu.cs.stage3.alice.authoringtool.Actions$15.actionPerformed(Actions.java:168)

	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

	at java.awt.Component.processMouseEvent(Unknown Source)

	at javax.swing.JComponent.processMouseEvent(Unknown Source)

	at java.awt.Component.processEvent(Unknown Source)

	at java.awt.Container.processEvent(Unknown Source)

	at java.awt.Component.dispatchEventImpl(Unknown Source)

	at java.awt.Container.dispatchEventImpl(Unknown Source)

	at java.awt.Component.dispatchEvent(Unknown Source)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

	at java.awt.Container.dispatchEventImpl(Unknown Source)

	at java.awt.Window.dispatchEventImpl(Unknown Source)

	at java.awt.Component.dispatchEvent(Unknown Source)

	at java.awt.EventQueue.dispatchEvent(Unknown Source)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.run(Unknown Source)

Last edited by David B; 02-05-2011 at 12:03 PM.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 01-17-2011, 09:48 AM

Does anybody have any help they can offer?
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 01-17-2011, 12:03 PM

47 different people have viewed this thread, and not one person has an answer?
   
Reply With Quote
Don't Know, but...
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default Don't Know, but... - 01-18-2011, 06:23 PM

It might help others to answer if you supply a little more info.

1) What type of sound file is it?
2) What is the native duration?
3) how was it created?
4) Do other sound files cause the same error?
5) If you load the sound file into an empty world, can you play it?
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 01-18-2011, 08:13 PM

Here are the answers to those questions.

1) Q: What type of sound file is it?
A: wav.

2) Q: What is the native duration?
A: I am not quite sure what that means.

3) Q: How was it created?
A: I downloaded it from YouTube using www.freefileconvert.com.

4) Q: Do other sound files cause the same error?
A: Yes

5) Q: If you load the sound file into an empty world, can you play it?
A: I am not sure because I never tried.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 01-19-2011, 02:49 PM

Anybody?
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-22-2011, 09:00 PM

Quote:
Originally Posted by David B View Post
47 different people have viewed this thread, and not one person has an answer?
I dont know how that view thing works. Im sure, 47 people have not looked at it, because that would be just mean. Hey! That gives me an idea, The Admins should put a new function for displaying who was on your thread!


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
views.
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default views. - 01-23-2011, 02:43 PM

as X once said, Problem is, the views you've gotten can be people who have no real idea of how exactly to do something that you are asking.


:D
   
Reply With Quote
Reply

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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.