posted 20 years ago
What I attempting to do is to play a short jingle off of the internal system speaker/beeper. I researched this on java.sun.com and found the following sollution:
The problem is that, when I print instruments.length it is -1. I am working on a computer without any speakers but it does have onboard sound. Also System.out.println("\07"); will beep but Toolkit.getDefaultToolkit().beep(); does not. If anyone knows what is wrong with this code or another way to beep other pitches please help.
Thanks in advance for your time,
Em