mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-04 14:53:40 -04:00
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 <pkv@obsproject.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user