Skip to content

fix(setSinkId): use requested sink for resource acquisition - #2684

Open
whizzkid1452 wants to merge 3 commits into
WebAudio:mainfrom
whizzkid1452:bug/setsinkid-resource-target
Open

whizzkid1452 wants to merge 3 commits into
WebAudio:mainfrom
whizzkid1452:bug/setsinkid-resource-target

Conversation

@whizzkid1452

@whizzkid1452 whizzkid1452 commented Jul 3, 2026 •

Copy link
Copy Markdown

Summary

  • Use the requested sinkId when acquiring resources during AudioContext.setSinkId() instead of the current [[sink ID]] slot.
  • Explicitly cover the AudioSinkOptions type: none target in the acquisition cases.
  • Add die-on=nothing to the PR Preview Bikeshed parameters for future previews that use the updated base configuration.

Test plan

  • git diff --check passed with only the repository's existing Windows line-ending warning.
  • Confirmed the failing Spec Generator URL returns HTTP 200 when die-on=nothing is added.
  • Confirmed PR Preview currently omits die-on=nothing from this PR's generated URL, which indicates it is using the base branch preview configuration.

@mjwilson-google mjwilson-google left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for looking into this.

Note that https://webaudio.github.io/web-audio-api/#AudioContext-constructors also wasn't updated to explicitly handle type "none"; if you have time to update that algorithm too it would be appropriate to include in this PR.

Comment thread .pr-preview.json Resolved
Comment thread index.bs Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants