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

Phil Race philip.race at oracle.com
Mon Feb 10 20:12:14 UTC 2020


+1

-phil

On 2/9/20 11:03 PM, Sergey Bylokhov wrote:
> 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.
>



More information about the sound-dev mailing list