Always execute FakeAudioWorker::|worker_cb_| even if late.
Most output clients are expecting that |worker_cb_| will consume N frames and that subsequently the clock advances by N frames. Not calling the |worker_cb_| stalls these internal clocks. There's still the issue that tasks are incredibly delayed in the ScopedTaskEnvironment on macOS. I.e., playback will still be slower than realtime, but it at least won't be 0.25x as we spend forever trying to catch up before executing the callback. BUG=1003761,1014646 R=miu Change-Id: Iaa98d683ba77fa664f13da2436cb69bf834251ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898641 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Yuri Wiitala <miu@chromium.org> Cr-Commit-Position: refs/heads/master@{#715430}
Showing
Please register or sign in to comment