From 569646046272a6feedec48c6fcae66d083dc5e73 Mon Sep 17 00:00:00 2001 From: Ryan Doupe Date: Sun, 25 Oct 2026 00:16:54 -0400 Subject: [PATCH 1/2] test: browser audio buffering under load Move plugins/obs-browser to the commit that adds tests/audio_buffering.py: a WebAudio alert page through a real browser source with "Control audio via OBS", under bursts of CPU load and three stalls of CEF's audio delivery (0.5, 0.9 and 0.3 s). It requires that OBS's global audio buffering stays at its value from before the load, that packets keep flowing and that each tone starts in the mix within one audio block of its capture timestamp. On master the buffering rises from 21 ms to 533 ms at the first stall and to 917 ms at the second. Refs #2335 --- plugins/obs-browser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-browser b/plugins/obs-browser index 7bab463c9b..8f046546f1 160000 --- a/plugins/obs-browser +++ b/plugins/obs-browser @@ -1 +1 @@ -Subproject commit 7bab463c9b657885ed8d98c66e99a87ee2e0d779 +Subproject commit 8f046546f13afbc589313922d28478c5e3d2c404 From 07f820713830ce44237802e5aeba2cb6341861b2 Mon Sep 17 00:00:00 2001 From: Ryan Doupe Date: Sun, 25 Oct 2026 01:56:31 -0400 Subject: [PATCH 2/2] obs-browser: Drop audio too late to mix Move plugins/obs-browser to the commit that drops browser audio that arrives too late to mix. Under load, CEF's audio delivery can stall and then hand over the backlog with its capture timestamps; OBS placed it behind the mixed block and raised its global audio buffering to fit it, for good, up to 960 ms. The module now drops what the mix has passed and logs it: the browser source is silent for about the stall instead. tests/audio_buffering.py passes: buffering stays at 21 ms through the load and three delivery stalls, and each tone starts in the mix within one audio block of its capture timestamp. Fixes #2335 --- docs/features.md | 7 +++++++ plugins/obs-browser | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/features.md b/docs/features.md index 2f07e755a1..eadb9867d0 100644 --- a/docs/features.md +++ b/docs/features.md @@ -986,6 +986,13 @@ area. [#2271](https://github.com/obs-rust/obs-studio/pull/2271), upstream [obsproject/obs-studio#4828](https://github.com/obsproject/obs-studio/issues/4828), [obsproject/obs-studio#3211](https://github.com/obsproject/obs-studio/issues/3211). +- A browser source with "Control audio via OBS" no longer raises the audio + buffering of every source for good (up to 960 ms of added latency) when + its audio arrives late under load. Audio that arrives too late to mix is + dropped and logged instead: during such a stall the browser source is + silent for about the stall's length (up to about a second), and other + sources keep their latency. *All*, pending merge. Issue + [#2335](https://github.com/obs-rust/obs-studio/issues/2335). ### Encoding, streaming and recording diff --git a/plugins/obs-browser b/plugins/obs-browser index 8f046546f1..2aa2b34432 160000 --- a/plugins/obs-browser +++ b/plugins/obs-browser @@ -1 +1 @@ -Subproject commit 8f046546f13afbc589313922d28478c5e3d2c404 +Subproject commit 2aa2b34432e4b656f76ecb6f7a2f131dcd664d8a