Skip to content

script: Update media to include fix for AudioBufferSourceNode.loop#56621

Merged
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41075
Dec 10, 2025
Merged

script: Update media to include fix for AudioBufferSourceNode.loop#56621
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41075

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

Fix in servo/media#476:

Previously:
the moment we set bufferSource.loop = true, the node hit the early “extreme edge case” check, decided “I refuse to output”, triggered onended, and returned silence. So the loop never got a chance to run.

Now:

Early bailout is removed(no idea why was there in first place).
The per tick offset is guaranteed to be a sensible value with respect to the loop range (wrapped if extreme).
The normal mixing code runs, updating pos each tick and respecting the loop region

Testing: I tested this manually, it would be nice to add a test for it, and I’m surprised there isn’t one yet.
Fixes: #41073
Reviewed in servo/servo#41075

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync merged commit f618291 into web-platform-tests:master Dec 10, 2025
23 of 24 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_41075 branch December 10, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants