Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6209600

MidiSystem.getMidiDeviceInfo() returns incomplete list of devices

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows 2000 [Version 5.00.2195]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      I have following midi devices installed:
        - Soundblaster Audigy 2 Platinum
        - ESI M8U (http://www.esi-pro.com/viewProduct.php?pid=20&page=1)
        - Midi Yoke (http://www.midiox.com/myoke.htm)

      A DESCRIPTION OF THE PROBLEM :
      MidiSystem.getMidiDeviceInfo() produces incomplete list of devices attached to my computer: ESI-M8U midi interface has 8 inputs and 8 outputs, however I can only see 7 inputs and 3 outputs.

      I tried to uninstall MidiYoke to see whether it was causing any kinds of conflicts, which resulted in few more but not all devices appearing (one more input and one more output).

      I have also verified it's not about drivers or hardware, as other (non-Java) applications can correctly see all the devices, and everything works perfectly under Linux (debian unstable, with vanilla 2.6.9 kernel, same jvm version but Linux-IA32 build).

      I have included a code snippet which lists all midi devices in the system. Here's the output of the program with my computer (with midi-yoke installed):

      0 MIDI Yoke NT: 1
      * description: No details available
      * vendor: Unknown vendor

      1 MIDI Yoke NT: 2
      * description: No details available
      * vendor: Unknown vendor

      2 MIDI Yoke NT: 3
      * description: No details available
      * vendor: Unknown vendor

      3 MIDI Yoke NT: 4
      * description: No details available
      * vendor: Unknown vendor

      4 MIDI Yoke NT: 5
      * description: No details available
      * vendor: Unknown vendor

      5 MIDI Yoke NT: 6
      * description: No details available
      * vendor: Unknown vendor

      6 MIDI Yoke NT: 7
      * description: No details available
      * vendor: Unknown vendor

      7 MIDI Yoke NT: 8
      * description: No details available
      * vendor: Unknown vendor

      8 SB Audigy MIDI Port [E800]
      * description: No details available
      * vendor: Unknown vendor

      9 SB Audigy MIDI Port II [E800]
      * description: No details available
      * vendor: Unknown vendor

      10 1-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      11 2-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      12 3-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      13 4-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      14 5-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      15 6-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      16 7-M8U MIDI
      * description: No details available
      * vendor: Unknown vendor

      17 Microsoft MIDI Mapper
      * description: Windows MIDI_MAPPER
      * vendor: Unknown vendor

      18 MIDI Yoke NT: 1
      * description: External MIDI Port
      * vendor: Unknown vendor

      19 MIDI Yoke NT: 2
      * description: External MIDI Port
      * vendor: Unknown vendor

      20 MIDI Yoke NT: 3
      * description: External MIDI Port
      * vendor: Unknown vendor

      21 MIDI Yoke NT: 4
      * description: External MIDI Port
      * vendor: Unknown vendor

      22 MIDI Yoke NT: 5
      * description: External MIDI Port
      * vendor: Unknown vendor

      23 MIDI Yoke NT: 6
      * description: External MIDI Port
      * vendor: Unknown vendor

      24 MIDI Yoke NT: 7
      * description: External MIDI Port
      * vendor: Unknown vendor

      25 MIDI Yoke NT: 8
      * description: External MIDI Port
      * vendor: Unknown vendor

      26 SB Audigy Sw Synth [E800]
      * description: Internal software synthesizer
      * vendor: Unknown vendor

      27 SB Audigy Synth A [E800]
      * description: No details available
      * vendor: Unknown vendor

      28 SB Audigy Synth B [E800]
      * description: No details available
      * vendor: Unknown vendor

      29 SB Audigy MIDI Port [E800]
      * description: External MIDI Port
      * vendor: Unknown vendor

      30 SB Audigy MIDI Port II [E800]
      * description: External MIDI Port
      * vendor: Unknown vendor

      31 Microsoft GS Wavetable SW Synth
      * description: Internal software synthesizer
      * vendor: Unknown vendor

      32 1-M8U MIDI
      * description: External MIDI Port
      * vendor: Unknown vendor

      33 2-M8U MIDI
      * description: External MIDI Port
      * vendor: Unknown vendor

      34 3-M8U MIDI
      * description: External MIDI Port
      * vendor: Unknown vendor

      35 Real Time Sequencer
      * description: Software sequencer
      * vendor: Sun Microsystems

      36 Java Sound Synthesizer
      * description: Software wavetable synthesizer and receiver
      * vendor: Sun Microsystems







      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.sound.midi.*;

      public class MidiTest {

        public static void main(String[] args) throws Exception {

          MidiDevice.Info[] infos =
              MidiSystem.getMidiDeviceInfo();

          for (int i = 0; i<infos.length; i++) {
              System.out.println(i+
                      "\t"+infos[i].getName()+
                      "\n\t* description: "+infos[i].getDescription()+
                      "\n\t* vendor: "+infos[i].getVendor()+
                      "\n"
                      );
          }
        }
      }
      ---------- END SOURCE ----------
      ###@###.### 2004-12-16 18:00:37 GMT

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: