-
-
Notifications
You must be signed in to change notification settings - Fork 9k
libobs: Monitoring deduplication fix for 'Desktop Audio' on monitor_only #12917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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 <[email protected]>
|
Just to wrap my head around this:
Wouldn't this lead to a feedback loop? Because we're continuously feeding the captured desktop audio output back into the output (while nothing will be output on stream)? |
there can't be a feedback loop because Desktop Audio and all AOC sources have the OBS_SOURCE_DO_NOT_SELF_MONITOR flag which is enforced here:
What happens is that an AOC set to 'monitor only' is neither monitored nor on the output; so why the hell, would users set the AOC to that ? i have no clue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, though the whole automatic muting system has gotten so arcane that it's really hard for anyone to follow who is not actively working on it.
In this case it depends on another (non-documented) automagic internal functionality to work rather then letting failure scenarios simply fail just because OBS is used as a crutch to fill an obvious missing piece in a streaming setup (in some cases: a USB audio device).
I agree; if asio became the streaming standard on windows, we would not have such issues about monitoring and desktop capture of a game. Tbh I wasn't even aware of those issues because i mainly use an asio device for direct monitoring ... Should a software become a crutch to people who don't have the right equipment ? that's a policy decision above my level. But there's a case to be made that obs is so popular that we should take into account people who just don't have either material means or technical level to deal with external sound devices. So I can hear arguments on both sides. |
Description
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.
Motivation and Context
Fix bug reported by @Penwy
How Has This Been Tested?
Bug is fixed on windows 11 25 H2.
Deduplication is not triggered if AOC is monitor_only.
Tested on a sine signal: the level stays nominal.
Types of changes
Checklist: