Skip to content

Commit

Permalink
Merge pull request obsproject#1258 from VodBox/monitor-fix
Browse files Browse the repository at this point in the history
UI: Change monitoring device on profile change
  • Loading branch information
jp9000 authored Apr 22, 2018
2 parents dbfcbac + e122a07 commit 0acf7e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions UI/window-basic-main-profiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0acf7e1

Please sign in to comment.