提交 a79992ea 编写于 作者: J jp9000

libobs: Fix audio issue with scene items

When a scene is added as a scene item with the same audio sources that
are already in the current scene, it would cause the current scene to no
longer output audio due to audio.

To replicate the issue, you would create two separate audio device
captures in scene 1, use add existing in scene 2 and add one of those
audio sources, then go back to scene 1, add scene 2 as a source, then
make scene 1 invisible.
上级 77648480
......@@ -907,7 +907,7 @@ static bool scene_audio_render(void *data, uint64_t *ts_out,
item = scene->first_item;
while (item) {
if (!obs_source_audio_pending(item->source)) {
if (!obs_source_audio_pending(item->source) && item->visible) {
uint64_t source_ts =
obs_source_get_audio_timestamp(item->source);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册