Activates update for reloadable audio systems in order to activate them if the number of devices changes from 0 to something greater.

cusax-fix
Vincent Lucas 13 years ago
parent 502b281e12
commit 976ee608a0

@ -226,8 +226,11 @@ private AudioSystem[] getAudioSystems()
if (type != AUDIO)
throw new IllegalStateException("type");
if (audioSystems == null)
audioSystems = deviceConfiguration.getAvailableAudioSystems();
// This must updated at each call to allows hotplug device system to be
// enabled (if the number of devices change to someting greater than 0)
// or disabled (if the number of available device changes to 0).
audioSystems = deviceConfiguration.getAvailableAudioSystems();
return audioSystems;
}

Loading…
Cancel
Save