Skip to content
Permalink
Browse files
8238738: AudioSystem.getMixerInfo() takes about 30 sec to report a go…
…ne audio device

Reviewed-by: prr
  • Loading branch information
mrserb committed Feb 13, 2020
1 parent ff55c49 commit 7af366a7e19155d91c5d6022d157a9c13d15fe9d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp
@@ -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 @@ extern "C" {

#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

0 comments on commit 7af366a

Please sign in to comment.