Alice Community  

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

Reply
 
Thread Tools Display Modes
Sound causes alice to go bellyside up
Old
Slayer2520
Junior Member
 
Status: Offline
Posts: 13
Join Date: Dec 2009
Default Sound causes alice to go bellyside up - 12-09-2009, 05:40 PM

Okay so I have been using Alice for the past semester of school and just recently it decided that it does not want to accept sounds of any format. I only know of .wav and .mp3 being accepted but everytime i try to run a program with a sound in it it crashes and gives me the error message that follows.

Error during simulation.




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$Gai n.setValue(Unknown Source)

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

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

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

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

at edu.cmu.cs.stage3.alice.core.response.SoundRespons e$RuntimeSoundResponse.updateVolumeLevel(SoundResp onse.java:92)

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

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

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

at edu.cmu.cs.stage3.alice.core.response.DoInOrder$Ru ntimeDoInOrder.childUpdate(DoInOrder.java:57)

at edu.cmu.cs.stage3.alice.core.response.DoInOrder$Ru ntimeDoInOrder.update(DoInOrder.java:98)

at edu.cmu.cs.stage3.alice.core.response.CallToUserDe finedResponse$RuntimeCallToUserDefinedResponse.upd ate(CallToUserDefinedResponse.java:86)

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

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

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

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

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

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

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

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

at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.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.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(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.showModalDia log(DialogManager.java:60)

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

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

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

at javax.swing.AbstractButton.fireActionPerformed(Unk nown 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.mouseRe leased(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(U nknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn 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.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

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

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

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





Please help, someone?
________
vaporizer questions

Last edited by Slayer2520; 02-02-2011 at 12:22 AM.
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-09-2009, 05:45 PM

ok that is way to green for me to read
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 12-09-2009, 05:46 PM

It says there's a value which exceeds a maximum. I think that means it's too high quality for Alice's sound importer to handle. Can your reduce the sampling rate on the sound file?


(')>
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-09-2009, 05:46 PM

ok i got it your sound exceeds the limit in the program:
java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-09-2009, 05:47 PM

ok x2495iiii got it before i replied
   
Reply With Quote
Old
Slayer2520
Junior Member
 
Status: Offline
Posts: 13
Join Date: Dec 2009
Default 12-09-2009, 05:50 PM

There no more green.

So dropping the sound quality with something like Audacity should work right? =D
________
herbalaire vaporizer

Last edited by Slayer2520; 02-02-2011 at 12:22 AM.
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-09-2009, 05:54 PM

Yup
   
Reply With Quote
Old
Slayer2520
Junior Member
 
Status: Offline
Posts: 13
Join Date: Dec 2009
Default 12-09-2009, 06:39 PM

It's still not working can anyone give me a specific way to lower the quality?
________
vapor genie review

Last edited by Slayer2520; 02-02-2011 at 12:22 AM.
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 12-09-2009, 06:57 PM

You can use a converter like media-convert.com where you can choose the file format that you want to export your music as and lower the file size.
   
Reply With Quote
Old
Slayer2520
Junior Member
 
Status: Offline
Posts: 13
Join Date: Dec 2009
Default 12-10-2009, 05:15 PM

so simply lowering the bitrate or compressing the .wav or .mp3 is not working. I have even tried to shorten the length of the sound as well. None prevail the value does not change and it continues to crash Alice.
________
sc2 replay

Last edited by Slayer2520; 02-02-2011 at 12:22 AM.
   
Reply With Quote
Reply

Tags
game, sound


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