mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-14 20:47:05 -04:00
Adds the "audio_line" internal source type as a bare source type for the sole purpose of outputting audio, and the obs_source_info::audio_mix callback which allows mixing of those audio lines, which is then treated as normal audio for the source. Audio line objects should be added as sub-sources when multiple audio lines from a single source are needed, then mixed together with the audio_mix callback. The difference between the new obs_source_info::audio_mix callback and obs_source_info::audio_render is that obs_source_info::audio_mix (along with the audio_line source) are only one track, and it outputs audio to the source automatically via obs_source_output_audio() when the call completes. This allows the mixed audio to be treated like a normal source's audio, in that you can filter it, change its volume, or monitor it. This change was necessary because the CEF (used with the browser source) outputs multiple audio streams at once to a single browser source, so it's the program's responsibility to mix those streams together itself.
22 KiB
22 KiB