提交 e122a07c 编写于 作者: V VodBox

UI: Change monitoring device on profile change

上级 439b9e4d
......@@ -346,6 +346,19 @@ void OBSBasic::ResetProfileData()
ResetOutputs();
ClearHotkeys();
CreateHotkeys();
/* load audio monitoring */
#if defined(_WIN32) || defined(__APPLE__) || HAVE_PULSEAUDIO
const char *device_name = config_get_string(basicConfig, "Audio",
"MonitoringDeviceName");
const char *device_id = config_get_string(basicConfig, "Audio",
"MonitoringDeviceId");
obs_set_audio_monitoring_device(device_name, device_id);
blog(LOG_INFO, "Audio monitoring device:\n\tname: %s\n\tid: %s",
device_name, device_id);
#endif
}
void OBSBasic::on_actionNewProfile_triggered()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册