Closed Bug 1862075 Opened 8 months ago Closed 7 months ago

Web Audio synthesizer code plays entire piece of music in Chromium, only plays first note on Firefox.

Categories

(Core :: Web Audio, defect)

Firefox 115
defect

Tracking

()

RESOLVED DUPLICATE of bug 1458045

People

(Reporter: andrew907, Unassigned)

Details

Attachments

(1 file)

Attached file test.html

User Agent: Mozilla/5.0 (X11; Linux aarch64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox for Android

Steps to reproduce:

Open the attached test file, click the test button.

Actual results:

Firefox and Chromium both show percentages in console, so both browsers are going through the loop that schedules musical events, but only Chromium plays the whole piece of music at the end. Firefox only plays the first note -- the buffer is otherwise filled with silence of the right length.

The "rendering failed" error is not triggered, nor are any other errors, in the Firefox console.

Expected results:

The intended behavior was to play the whole piece of music (in this example, an excerpt from Tchaikovsky's sonata in C sharp minor, but this code behaves consistently with any music that I've tried).

I'm not 100% sure whether this is a Firefox bug or whether Chromium is overly forgiving with code that doesn't comply with standards. I'm not sure what the standards-compliant equivalent would be though. I'm not quite sure which line or lines are the issue. It would be in the second half of the file because the first half is all test data. I've already stripped away most of the other code in the final webpage to try to isolate the problem to a minimum working example.

I'm running Firefox and Chromium on a Purism Librem 5 running PureOS 10 (i.e. practically fairly vanilla Debian with an adaptation of Gnome Shell for phones), but the behavior has repeated itself when I tried on Ubuntu and with Chrome, Firefox and Edge on Windows.

Component: Untriaged → Web Audio
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All

Not reproducible in Nightly. Mozregression bisecting shows it was fixed by the patch in bug 1458045. Marking as duplicated.

Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1458045
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: