From 68f5470d152bd5fec6484943a709fc89ec181f44 Mon Sep 17 00:00:00 2001 From: pkv Date: Sun, 14 Dec 2025 09:43:33 +0100 Subject: [PATCH] libobs: Monitoring deduplication fix for 'Desktop Audio' on monitor_only When an Audio Output Capture source (AOC) like 'Desktop Audio' has monitoring_type == OBS_MONITORING_TYPE_MONITOR_ONLY, deduplication should not be triggered. this is an edge case which may not cover a reasonable use case, but for the sake of completeness, we deal with it. Signed-off-by: pkv --- libobs/obs-audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libobs/obs-audio.c b/libobs/obs-audio.c index b3e2fb470..f016c0505 100644 --- a/libobs/obs-audio.c +++ b/libobs/obs-audio.c @@ -517,6 +517,9 @@ static inline bool should_silence_monitored_source(obs_source_t *source, struct if (!dup_src || !obs_source_active(dup_src)) return false; + if (dup_src->monitoring_type == OBS_MONITORING_TYPE_MONITOR_ONLY) + return false; + bool fader_muted = close_float(audio->monitoring_duplicating_source->volume, 0.0f, 0.0001f); bool output_capture_unmuted = !audio->monitoring_duplicating_source->muted && !fader_muted;