Closed Bug 1849292 Opened 1 year ago Closed 1 year ago

Buzzing sounds coming from speaker when playing videos on certain websites

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 118
All
Android
defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- unaffected
firefox118 + fixed

People

(Reporter: giwayume, Assigned: padenot)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [qa-triaged] )

Attachments

(1 file)

Steps to reproduce:

  1. Download the latest version of Firefox Nightly from Google Play
  2. Open http://gogoanime3.net/watashi-no-shiawase-na-kekkon-episode-7
  3. Play the video, a constant buzzing noise comes out of the right channel speakers while the audio levels from the video are higher than silence.

I thought at first my speakers on my brand new tablet were going out, but no, this issue does not happen in Chrome. It also doesn't happen on the latest build of Firefox stable for Android (116.3.0). It only happens on nightly.

The Android device used is Galaxy Tab S8+, model SM-X800.
One UI version 5.1. Android version 13. Android security patch May 1, 2023.

Actual results:

A buzzing sound comes out of the speakers when playing HTML5 videos from certain websites (youtube doesn't appear to be affected).

Expected results:

Normal audio should play, no buzzing sounds.

Upon further testing, the last version where this worked correctly (no speaker cracking), is:
2015967139 (2023-08-09 release)

Which means the next release is where this issue started occurring:
2015967251 (2023-08-10 release)

This should greatly narrow down which part of the code you need to look at to identify what caused the issue.

@giwayume thank you for your report! I was able to reproduce the issue on latest Nightly - 118.0a1 from 18.08.2023 with Motorola Moto G9 plus (Android 11).

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged]
Flags: needinfo?(padenot)

Reporter, thanks for filing, would you mind telling me what's audio backend is in use on your device by going to about:support, scrolling down to the Media section?

It should say AAudio, or OpenSL ? I have a fix ready, but I want to make sure your problem isn't something else.

Flags: needinfo?(padenot) → needinfo?(giwayume)
Assignee: nobody → padenot

Nevermind, I can reproduce on a completely different device, it's something else related to AAC decoding, I'll get a patch.

Audio backend is aaudio

Flags: needinfo?(giwayume)

Perfect, that matches what I'm seeing locally on a Pixel 4. Patch incoming, thanks for providing details.

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/651b9362eee8 Fix off by one in InflatableShortBuffer. r=media-playback-reviewers,alwu
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

Paul, a Firefox 117.0.2 dot release is planned for next week. Do you think this Android fix would be a good ride-along fix? Does this bug affect both Android and desktop?

Component: General → Audio/Video: Playback
Flags: needinfo?(padenot)
Product: Fenix → Core
Flags: needinfo?(padenot) → in-testsuite+
Keywords: regression
Regressed by: 1833654

(In reply to Chris Peterson [:cpeterson] from comment #11)

Paul, a Firefox 117.0.2 dot release is planned for next week. Do you think this Android fix would be a good ride-along fix? Does this bug affect both Android and desktop?

117 isn't affected, https://bugzilla.mozilla.org/show_bug.cgi?id=1833654 landed in 118.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: