BunnyWorld FAQ

Audio

Q: I am totally stumped on getting audio to play! All I see on the web are references to Applet.AudioClip.
A: First of all, check out this helpful tip here. Unless you are doing something fancier with sound, you should be able to just start the sound playing. The player should stop on its own once the sound clip is done. Using that tip should support both .wav files and .au files.

You can also try the following link for slightly lower-level sound playing. This method gives you a little bit more control over the sound.

Q: How can I make .au files?
A: This program has worked for me: Switch. Lower on the page are links to download for Windows. Any sound file converter will do, of course.

Q: What's the deal with the sun.* packages? Why aren't they on javadoc?
A: The sun.* packages are undocumented API's that you are still able to use. Why are they undocumented? Well, it basically means that they are not guaranteed to work on all platforms. That being said, they tend to work on most platforms. You just have to be careful. Using the packages is acceptable IF AND ONLY IF you have tested your code on the Leland machines and it works properly.

Q: When using an AudioStream object, I get the following error: "Access restriction: The constructor AudioStream is not accessible due to restriction on required library /path/to/rt.jar"
A: Some people run into this error due to the fact that the sun.audio.* packages are undocumented API's. You can get around this by telling the compiler to not output that specific error. You can change compiler settings to not fail on those restrictions in workspace settings in Window \/ Preferences \/ Java \/ Compiler \/ Errors/Warnings \/ Deprecated and restricted API \/ Forbidden reference (access rules) \/ Warnings; or per-project from Project \/ Properties \/ Java Compiler \/ Errors\/Warnings \/ Deprecated and restricted API \/ Forbidden reference (access rules) \/ Warnings

Q: How can I test my Audio on the Myth/Pod machines?
A: Unfortunately, the only way to ensure that your audio is playing is to go in to the Myth (Gates) or Pod (Terman) clusters, hook in some headphones and run your program on the machine.

Shapes

Q: Do hidden shapes respond to events, e.g. onEnter?
A: Yes. We can use that feature to create an empty room that plays a sound upon entering.