From aac04ff493c30d720f7d23bab4563b24088b4135 Mon Sep 17 00:00:00 2001 From: pkv Date: Sat, 16 May 2020 11:10:04 +0200 Subject: [PATCH] UI: Log monitoring type for global audio devices --- UI/window-basic-main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 09304eb15..b1654de9b 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -686,6 +686,16 @@ static void LoadAudioDevice(const char *name, int channel, obs_data_t *parent) const char *name = obs_source_get_name(source); blog(LOG_INFO, "[Loaded global audio device]: '%s'", name); obs_source_enum_filters(source, LogFilter, (void *)(intptr_t)1); + obs_monitoring_type monitoring_type = + obs_source_get_monitoring_type(source); + if (monitoring_type != OBS_MONITORING_TYPE_NONE) { + const char *type = (monitoring_type == + OBS_MONITORING_TYPE_MONITOR_ONLY) + ? "monitor only" + : "monitor and output"; + + blog(LOG_INFO, " - monitoring: %s", type); + } obs_source_release(source); }