Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Problem With Background Music On Alice (http://www.alice.org/community/showthread.php?t=5870)

David B 01-16-2011 08:51 PM

Problem With Background Music On Alice
 
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)[/CODE]

David B 01-17-2011 09:48 AM

Does anybody have any help they can offer?

David B 01-17-2011 12:03 PM

47 different people have viewed this thread, and not one person has an answer?

MrMoke 01-18-2011 06:23 PM

Don't Know, but...
 
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?

David B 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 [URL="www.youtube.com"]YouTube[/URL] using [URL="www.freefileconvert.com"]www.freefileconvert.com[/URL].

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.

David B 01-19-2011 02:49 PM

Anybody?

MrMoke 01-21-2011 07:25 PM

Sorry for the Delay
 
There have been previous discussions regarding sound file and the 09-10-2010 version of Alice 2.2.

They mostly revolve around the fact that sound files that worked in previous versions of Alice fail when used with the newer release.

If other .wav files that haven't been through your converter do run properly, then it might be the convert software. Another option might be to try converting to .mp3 format.

I'm currently running 9-10-2010 on Win7, and have tried testing numerous .wav files with no problems.

David B 01-22-2011 08:21 PM

[QUOTE=MrMoke;30592]There have been previous discussions regarding sound file and the 09-10-2010 version of Alice 2.2.

They mostly revolve around the fact that sound files that worked in previous versions of Alice fail when used with the newer release.

If other .wav files that haven't been through your converter do run properly, then it might be the convert software. Another option might be to try converting to .mp3 format.

I'm currently running 9-10-2010 on Win7, and have tried testing numerous .wav files with no problems.[/QUOTE]

I will consider that. Thanks!

jediaction 01-22-2011 09:00 PM

[QUOTE=David B;30521]47 different people have viewed this thread, and not one person has an answer?[/QUOTE]

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!

room14 01-23-2011 02:43 PM

views.
 
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.


All times are GMT -5. The time now is 01:49 AM.

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