Activate user-selected audio devices
- Fix a bug where the initial audio data insertion would cause all audio data to unintentionally clear (mixed up < and > operators, damn human error) - Fixed a potential interdependant lock scenario with channel mutex locks and graphics mutex locks. The main video thread could lock the graphics mutex and then while in the graphics mutex could lock the channels mutex. Meanwhile in another thread, the channel mutex could get locked, and then the graphics mutex would get locked, causing a deadlock. The best way to deal with this is to not let mutexes lock within other mutexes, but sometimes it's difficult to avoid such as in the main video thread. - Audio devices should now be functional, and the devices in the audio settings can now be changed as desired.
This commit is contained in:
parent
2c3a3f4e65
commit
f2ee950746
9 changed files with 96 additions and 21 deletions
|
|
@ -481,7 +481,7 @@ void OBSBasicSettings::SaveAudioSettings()
|
|||
QString desktopDevice2 = GetComboData(ui->desktopAudioDevice2);
|
||||
QString auxDevice1 = GetComboData(ui->auxAudioDevice1);
|
||||
QString auxDevice2 = GetComboData(ui->auxAudioDevice2);
|
||||
QString auxDevice3 = GetComboData(ui->auxAudioDevice2);
|
||||
QString auxDevice3 = GetComboData(ui->auxAudioDevice3);
|
||||
|
||||
const char *channelSetup;
|
||||
if (channelSetupIdx == 0)
|
||||
|
|
@ -509,6 +509,8 @@ void OBSBasicSettings::SaveAudioSettings()
|
|||
QT_TO_UTF8(auxDevice2));
|
||||
config_set_string(main->Config(), "Audio", "AuxDevice3",
|
||||
QT_TO_UTF8(auxDevice3));
|
||||
|
||||
main->ResetAudioDevices();
|
||||
}
|
||||
|
||||
void OBSBasicSettings::SaveSettings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue