Adds a message in the audio configuration dialog, to inform the user that the none audio system is currently selected, only because there is no available audio device.

cusax-fix
Vincent Lucas 13 years ago
parent 356e721b20
commit 55db5abf69

@ -1360,6 +1360,7 @@ impl.media.configform.DEVICES=Devices
impl.media.configform.DOWN=&Down
impl.media.configform.ECHOCANCEL=Enable echo cancellation
impl.media.configform.ENCODINGS=Encodings
impl.media.configform.NO_AVAILABLE_AUDIO_DEVICE=No available audio device. Please connect one.
impl.media.configform.NO_DEVICE=<No Device>
impl.media.configform.NO_PREVIEW=Preview
impl.media.configform.UP=&Up

@ -780,6 +780,29 @@ private Component createPreview(
preview = new TransparentPanel(new GridBagLayout());
createAudioSystemControls(audioSystem, preview);
}
else
{
AudioSystem[] availableAudioSystems
= AudioSystem.getAudioSystems();
AudioSystem[] activeAudioSystems = mediaService
.getDeviceConfiguration().getAvailableAudioSystems();
// If the only one active audio system which is "None" and there
// is(are) other(s) available audio system(s), then it means
// that the other(s) audio system(s) do(es) not have detected
// any device.
if(availableAudioSystems != null
&& availableAudioSystems.length > 1
&& activeAudioSystems != null
&& activeAudioSystems.length == 1)
{
String noAvailableAudioDevice
= NeomediaActivator.getResources().getI18NString(
"impl.media.configform.NO_AVAILABLE_AUDIO_DEVICE");
preview = new TransparentPanel(new GridBagLayout());
preview.add(new JLabel(noAvailableAudioDevice));
}
}
}
else if (type == DeviceConfigurationComboBoxModel.VIDEO)
{

Loading…
Cancel
Save