0 Replies Latest reply: Apr 19, 2013 3:41 PM by 1004262 RSS

    Scanning for a newly plugged in MIDI device

    1004262
      Hi all,

      I'm currently using javax.sound.midi in my project and I have to implement a feature where the program detects if the user plugs in a new midi device during runtime.

      This is a bit of a problem as mentioned here:

      http://stackoverflow.com/questions/3752352/java-sound-api-scanning-for-midi-devices

      Basically javax.sound caches the providers list for a minute, and I did what was suggested in the thread to set the caching period to 1 second. Unfortunately, this did not work for me (I'm running on Mac OSX). I can see that the providers list are new objects but it still doesn't detect the new plugged in device. However, it does work on the PC. So my question is, does anyone have any suggestions on how to getting this working on all platforms?

      Any help would be greatly appreciated!

      George