Disable changing the config if the current audio device isn't found
This should alleviate the impact of enabling "Use Input devices ..." in the advanced config Also add a log message to signify that "Use Input devices ..." is enabledmaster
parent
c448a4e1c1
commit
0708c86dbc
|
@ -531,7 +531,7 @@ retryHookTestV2:
|
|||
String strPlaybackDevice = AppConfig->GetString(TEXT("Audio"), TEXT("PlaybackDevice"), TEXT("Default"));
|
||||
if(strPlaybackDevice.IsEmpty() || !playbackDevices.HasID(strPlaybackDevice))
|
||||
{
|
||||
AppConfig->SetString(TEXT("Audio"), TEXT("PlaybackDevice"), TEXT("Default"));
|
||||
//AppConfig->SetString(TEXT("Audio"), TEXT("PlaybackDevice"), TEXT("Default"));
|
||||
strPlaybackDevice = TEXT("Default");
|
||||
}
|
||||
|
||||
|
@ -544,13 +544,16 @@ retryHookTestV2:
|
|||
CrashError(TEXT("Cannot initialize desktop audio sound, more info in the log file."));
|
||||
}
|
||||
|
||||
if (useInputDevices)
|
||||
Log(L"Use Input Devices enabled, not recording standard desktop audio");
|
||||
|
||||
AudioDeviceList audioDevices;
|
||||
GetAudioDevices(audioDevices, ADT_RECORDING, false, true);
|
||||
|
||||
String strDevice = AppConfig->GetString(TEXT("Audio"), TEXT("Device"), NULL);
|
||||
if(strDevice.IsEmpty() || !audioDevices.HasID(strDevice))
|
||||
{
|
||||
AppConfig->SetString(TEXT("Audio"), TEXT("Device"), TEXT("Disable"));
|
||||
//AppConfig->SetString(TEXT("Audio"), TEXT("Device"), TEXT("Disable"));
|
||||
strDevice = TEXT("Disable");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue