java sound MidiUnavailableException-help?
in
Integration and Hardware
•
2 years ago
Hi
Im having issues with using the java sound api both with the soundcipher library and from using java code directly- I get the following errors:
my system is Kubuntu Lucid, and using java6 from Sun. any adive would be really appreciated! --thanks all
- javax.sound.midi.MidiUnavailableException
- at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1078)
- at javax.sound.midi.MidiSystem.getReceiver(MidiSystem.java:240)
- at javax.sound.midi.MidiSystem.getSequencer(MidiSystem.java:442)
- at javax.sound.midi.MidiSystem.getSequencer(MidiSystem.java:348)
- at arb.soundcipher.SCScore.<init>(SCScore.java:103)
- at arb.soundcipher.SoundCipher.<init>(SoundCipher.java:73)
- at Bing.setup(Bing.java:30)
- at processing.core.PApplet.handleDraw(Unknown Source)
- at processing.core.PApplet.run(Unknown Source)
- at java.lang.Thread.run(Thread.java:619)
- Caused by: java.lang.IllegalArgumentException: Requested device not installed
- at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1130)
- at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1076)
- ... 9 more
- javax.sound.midi.MidiUnavailableException
- at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1078)
- at javax.sound.midi.MidiSystem.getReceiver(MidiSystem.java:240)
- at arb.soundcipher.SoundCipher.<init>(SoundCipher.java:105)
- at Bing.setup(Bing.java:30)
- at processing.core.PApplet.handleDraw(Unknown Source)
- at processing.core.PApplet.run(Unknown Source)
- at java.lang.Thread.run(Thread.java:619)
- Caused by: java.lang.IllegalArgumentException: Requested device not installed
- at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1130)
- at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1076)
- ... 6 more
- Exception in thread "Animation Thread" java.lang.NullPointerException
- at arb.soundcipher.SCScore.stop(SCScore.java:216)
- at arb.soundcipher.SoundCipher.playNote(SoundCipher.java:144)
- at arb.soundcipher.SoundCipher.playNote(SoundCipher.java:125)
- at Bing.setup(Bing.java:32)
- at processing.core.PApplet.handleDraw(Unknown Source)
- at processing.core.PApplet.run(Unknown Source)
- at java.lang.Thread.run(Thread.java:619)
1