Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Scanning for a newly plugged in MIDI device

1004262Apr 19 2013
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2013
Added on Apr 19 2013
0 comments
1,357 views