mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-12 02:29:03 -04:00
UI: Add logging of audio monitoring to sources
This commit is contained in:
@@ -587,6 +587,18 @@ static bool LogSceneItem(obs_scene_t*, obs_sceneitem_t *item, void*)
|
||||
|
||||
blog(LOG_INFO, " - source: '%s' (%s)", name, id);
|
||||
|
||||
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_enum_filters(source, LogFilter, (void*)(intptr_t)2);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user