<Sound Dev> RFR: 8238738 AudioSystem.getMixerInfo() takes about 30 sec to report a gone audio device

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Feb 10 07:03:04 UTC 2020


Hello.
Please review the fix for jdk/client.

Bug: https://bugs.openjdk.java.net/browse/JDK-8238738
Fix: http://cr.openjdk.java.net/~serb/8238738/webrev.00

I propose to decrease the constant "WAIT_BETWEEN_CACHE_REFRESH_MILLIS"
and update the list of devices more often. The 30 seconds delay was
used from the very beginning when we cache the service providers as well,
but that cache was removed back in 2013.

Note that if the data is cached then the method works x10 times
faster, this is why I decreased the value but did not delete it
completely, 3 seconds should be fine.

-- 
Best regards, Sergey.


More information about the sound-dev mailing list