alice-teacher Errors when trying to playback sound file within a program

Minni Ang minni.ang at gmail.com
Tue Apr 5 19:32:04 EDT 2011


Thanks for the tip. I just tried this, but still get the same error. What
else can I do?

Minni



On Tue, Apr 5, 2011 at 7:07 PM, Don Slater <dslater at andrew.cmu.edu> wrote:

> When this happens with sound files in Alice, I will open the sound file in
> Audacity, free, open source software for recording and editing sounds,
> available at
>
>        http://audacity.sourceforge.net/
>
> and then export that file as an .mp3, using the "LAME MP3 encoder", a plug
> in for Audacity, available at the same web site. Even if the original file
> is an .mp3, Alice responds much better to the .mp3 files that have been
> exported in this way. It is my understanding that not all .mp3 files are
> created equal, and that the codec that Alice uses does not handle all the
> variations well.
>
> I hope this helps.
>
> All the best,
> Don Slater
>
> On Apr 5, 2011, at 5:52 PM, Minni Ang wrote:
>
> > Hi, I was wondering if anyone could advise me on the error below, which I
> copied from my clipboard when Alice crashed when I was trying to run a
> program. The crash happens when it tries to playback a sound file. I tried
> using both WAV as well as MP3 files, but all give the same error. In fact, I
> have never before been able to playback any soundfiles within Alice.
> >
> > If I remove the call to playback sound, the program runs fine.
> >
> > Minni
> >
> >
> >
> > Alice version: 2.2  02/10/2011
> >
> > *****Running World*****
> > Exception in thread "JMF thread: com.sun.media.PlaybackEngine at 1bb6dee (
> prefetchThread)" 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.AudioRenderer.initDevice(AudioRenderer.java:294)
> >
> >       at
> com.sun.media.renderer.audio.JavaSoundRenderer.initDevice(JavaSoundRenderer.java:125)
> >
> >       at
> com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:91)
> >
> >       at
> com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:157)
> >
> >       at
> com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:98)
> >
> >       at
> com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:592)
> >
> >       at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:547)
> >
> >       at
> com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)
> >
> >       at
> com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
> >
> >
> > _______________________________________________
> > alice-teachers mailing list
> > alice-teachers at lists.andrew.cmu.edu
> > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20110405/02934d3a/attachment.html 


More information about the alice-teachers mailing list