Closed Bug 1727598 Opened 3 years ago Closed 3 years ago

audio is cut when using external input and output device

Categories

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

Firefox 92
Desktop
macOS
defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox91 --- unaffected
firefox92 + fixed
firefox93 + verified

People

(Reporter: chunmin, Assigned: chunmin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(5 files, 1 obsolete file)

Got this report from matrix. The audio is cut when using the external input and output device. Here is the log

Attached file about-support.json

Here is the about-support

Blocks: 1530713
Attached file GitHub Pull Request

Set release status flags based on info from the regressing bug 1721496

It's probably too late to get this fixed in time for the 92.0 release given that we're already at RC week, but leaving this fix-optional as a possible ride-along in case the fix is an easy uplift.

It is a trivial uplift. We'll want to take this, this makes any WebRTC app unusable for some macOS users.

We know one configuration that can reproduce, but we don't know how many configurations can reproduce.

Also, this has been verified by the reporter and :chunmin who wrote the patch.

I'm landing this now, this has been reviewed upstream. Try is green: https://treeherder.mozilla.org/jobs?repo=try&revision=55ae323c16dbf4d8e38b9b872ed003aea77fadd5.

Adjusting severity based on comment 7.

Comment on attachment 9238516 [details]
WIP: Bug 1727598 - Restore audio input handling behaviour from 91 for beta.

Beta/Release Uplift Approval Request

  • User impact if declined: This fixes audio input (microphone) for macOS users using external audio devices.
  • 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): This restores the behavior of 91 (current release). This has been independently reproduced and subsequently verified by two people with different configuration. It's the same patch that landed on central, rebased for beta.
  • String changes made/needed: none
Attachment #9238516 - Flags: approval-mozilla-beta?

Comment on attachment 9238516 [details]
WIP: Bug 1727598 - Restore audio input handling behaviour from 91 for beta.

Approved for 92.0rc1.

Attachment #9238516 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Considering the added "qe-verify+" tag, we have attempted reproducing this issue on Mac OS 10.14 (originally affected system) and Mac OS 11, with Nightly v93.0a1 from 29th and 30th of August, on Beta v92b9, v92.0b5 and others.
We've tried interrupt tests (connecting/disconnecting different audio devices from the system) with TTRS headsets, USB Headsets while playing different audio-video streaming applications (like youtube and webrtc).

We could not reproduce the audio being cut issue. More information on how this issue was initially reproduced is necessary.
C.M.Chang, can you help us with the necessary information? Thanks!

Flags: needinfo?(cchang)
Attachment #9238516 - Attachment is obsolete: true

I reproduced the situation on my end with an external sound card configured to a 4-channel output (it's a 7.1 external USB soundcard) and an external camera that has a built-in mic as input.

I tested the sound by https://webrtc.github.io/samples/src/content/getusermedia/audio/.

The sound was on and off in the broken version (FF92). The audio was cut constantly.

Step to reproduce

  1. Prepare a broken version of Firefox, which is a version without the patches here
    • Note that we've uplifted to FF 92 as well
    • A nightly build in 08-25-2021 might be a good candidate, or other FF92 versions before we uplifted
  2. Connect an external USB soundcard and set it as the default output device
  3. Connect an external USB microphone (and choose it as the input device later)
  4. Go to https://webrtc.github.io/samples/src/content/getusermedia/audio/, and select the external USB microphone as the input device
  5. Making some voice and play it out from the external USB soundcard (it should be the default output device now)
    • The sound played out should be cut constantly, or sounds stuttering

If the issue can be reproduced, please re-try the above steps in the current Firefox Nightly version to see if the issue is fixed. Feel free to let me know if you need my help. Thanks!

Flags: needinfo?(cchang)

Unfortunately, I do not have an external sound card and a USB microphone to reproduce this issue and verify the fix.
Will you be so kind as to help up and verify the fix in the fixed channels?

  1. Firefox v92.0 Release Candidate for mac
  2. Nightly v93.0a1 for mac

Thank you for your contribution!

Flags: needinfo?(cchang)

(In reply to Bodea Daniel [:danibodea] from comment #20)

  1. Firefox v92.0 Release Candidate for mac
  2. Nightly v93.0a1 for mac

The audio input works well on my end and the current nightly build

Flags: needinfo?(cchang)

This is already in release and based on latest comment this is fixed.

QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: