changeset 60274:314f940aaf82

8238738: AudioSystem.getMixerInfo() takes about 30 sec to report a gone audio device Reviewed-by: prr
author serb
date Thu, 13 Feb 2020 13:17:16 -0800
parents f3d90cac1c7c
children 19adbbca4307
files src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp	Wed Feb 12 14:45:10 2020 -0800
+++ b/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp	Thu Feb 13 13:17:16 2020 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -68,8 +68,8 @@
 
 #if USE_DAUDIO == TRUE
 
-/* half a minute to wait before device list is re-read */
-#define WAIT_BETWEEN_CACHE_REFRESH_MILLIS 30000
+/* 3 seconds to wait before device list is re-read */
+#define WAIT_BETWEEN_CACHE_REFRESH_MILLIS 3000
 
 /* maximum number of supported devices, playback+capture */
 #define MAX_DS_DEVICES 60