Skip to content
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

Allow WebAudio FIFO size to match callback buffer if it is very large #4676

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

sideb0ard
Copy link
Contributor

@sideb0ard sideb0ard commented Jan 9, 2025

b/388556893

Allow WebAudio FIFO size to match callback buffer if it is very large

The Web Audio FIFO is over-allocated to allow for growing if there are buffer xruns. However, on some Android devices there is a very large callback buffer which will fail a CHECK. Just match the callback buffer size in this case, to avoid crashing.

This change is backported from m123+.

(cherry picked from commit 01cb952243ee9efca53b66f50d3026aeb5443049)

Bug: 324797343
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5293168

Allow WebAudio FIFO size to match callback buffer if it is very large

The Web Audio FIFO is over-allocated to allow for growing if there are
buffer xruns.  However, on some Android devices there is a very large
callback buffer which will fail a CHECK.  Just match the callback
buffer size in this case, to avoid crashing.

Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5293168

(cherry picked from commit 01cb952243ee9efca53b66f50d3026aeb5443049)
@sideb0ard sideb0ard requested a review from a team as a code owner January 9, 2025 19:25
@borongc
Copy link
Contributor

borongc commented Jan 10, 2025

The message and trailer should follow the format like this (cc @dahlstrom-g ):

commit message...

This change is backported from m126+.

(cherry picked from commit 01cb952243ee9efca53b66f50d3026aeb5443049)

Bug: 388556893
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5293168

@sideb0ard
Copy link
Contributor Author

The message and trailer should follow the format like this (cc @dahlstrom-g ):

updated, thanks!

@sideb0ard sideb0ard merged commit 208fd28 into youtube:main Jan 13, 2025
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants