I also noticed a problem which might make my problem more clear to somebody...
1 2 3 4 5
| MidiDevice.Info[] info = MidiSystem.getMidiDeviceInfo(); System.out.println("Info=" + info.length); for (int i = 0; i < info.length; i++) { System.out.println(info[i]); } |
returns "0". Like i don't have a midi device on the system?
My friend with the same exact code gets:
Info=4
Java Sound Synthesizer
Java Sound Sequencer
Microsoft MIDI Mapper
Microsoft GS Wavetable SW Synth
I don't get it. I've been googling for a few days now and no luck. Here and there i find a comment saying it is not possible except by using Timidi or something like that. I looked that up to and i really don't understand where the problem is. My buddy uses the same code and it works for him. I can play the midi's using winamp.
the new error i get is:
java.lang.IllegalArgumentException: Requested device not installed: null
at javax.sound.midi.MidiSystem.getGenericDevice(MidiSystem.java:1073)
at javax.sound.midi.MidiSystem.
getSynthesizer(MidiSystem.java:242)
I can't use the getSequencer(boolean) cause i don't have Java 1.5. At work we are using 1.4.
I can play wav's using java...