Closed Bug 1905636 Opened 8 months ago Closed 8 months ago

Allow buffering of frames in AAudio input callbacks

Categories

(Core :: Audio/Video: cubeb, defect, P2)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: pehrsons, Assigned: pehrsons)

References

Details

Attachments

(1 file, 1 obsolete file)

We set the frames per data callback to the requested latency. We also set the buffer size to 3x the burst size.

These don't always align, and perhaps more importantly, the buffer size may end up smaller than the frames per data callback.

In addition to this, we also set the buffer capacity to the requested latency. Note that the frames per data callback setter docs say to set the buffer capacity to at least 2x the frames per data callback.

This could be the root cause of bug 1882846, so marking this a blocker.

Attachment #9410458 - Attachment is obsolete: true
Pushed by pehrsons@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8dfa3866684f Update libcubeb to 5d5008d25c. r=cubeb-reviewers,padenot
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Comment on attachment 9410457 [details]
Bug 1905636 - Update libcubeb to 5d5008d25c. r?#cubeb-reviewers!

Uplifting bug 1877948 depends on this patch.

Beta/Release Uplift Approval Request

  • User impact if declined: Background noise when recording audio.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The changes are simple.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9410457 - Flags: approval-mozilla-release?

Comment on attachment 9410457 [details]
Bug 1905636 - Update libcubeb to 5d5008d25c. r?#cubeb-reviewers!

Approved for 128.0.2.

Attachment #9410457 - Flags: approval-mozilla-release? → approval-mozilla-release+
Regressions: 1934566
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: