Skip to content

Update AudioBufferSourceNode to latest W3C draft #3978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

pablosichert
Copy link
Contributor

With this PR, the AudioBufferSourceNode WebIDL file is updated to the latest version of the W3C draft at https://webaudio.github.io/web-audio-api/#AudioBufferSourceNode.

Namely, the grain_ prefix from the offset and duration input parameters is removed.

The removed attribute EventHandler onended; can be accessed through the AudioScheduledSourceNode base class.

Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Unfortunately this would be a breaking change, so we have to be a bit more careful.

  1. Its fine just updating parameter names in WebIDL, but that also changes method names in the generated Rust code, which would be a breaking change. You can use this to adjust the names in the generator.
  2. The removal of methods is fine as long as they actually got removed from browsers. Could you check the usual browsers? (you can also check their source code if that's easier)

A changelog entry has to be added as well.

@daxpedda daxpedda added the waiting for author Waiting for author to respond label Jun 27, 2024
@daxpedda
Copy link
Collaborator

Replaced by #4020.

@daxpedda daxpedda closed this Jul 28, 2024
@pablosichert pablosichert deleted the update-audio-buffer-source-node branch August 30, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for author Waiting for author to respond
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants