- Fix default audio system to be portaudio, when there is some changes in sound devices between runs.

cusax-fix
Damian Minkov 17 years ago
parent fc4b70e6d8
commit 006e3014e8

@ -225,7 +225,7 @@ else if (audioCaptureDevices.length < 1)
if(audioDevName == null)
{
// the default behaviour if nothing set is to use javasound
// the default behaviour if nothing set is to use portaudio
// this will also choose the capture device
if(PortAudioAuto.isSupported())
{
@ -255,11 +255,11 @@ else if (audioCaptureDevices.length < 1)
{
logger.warn("Computer sound config changed or " +
"there is a problem since last config was saved, " +
"will back to javasound");
"will back to default");
setAudioPlaybackDevice(null, false);
setAudioNotifyDevice(null, false);
setAudioCaptureDevice(null, false);
setAudioSystem(AUDIO_SYSTEM_JAVASOUND, null, false);
setAudioSystem(AUDIO_SYSTEM_PORTAUDIO, null, false);
}
}
if (audioCaptureDevice != null)

Loading…
Cancel
Save