-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Fix: Update AudioBuffer parameters to remove deprecated options #36562
Fix: Update AudioBuffer parameters to remove deprecated options #36562
Conversation
Preview URLs (comment last updated: 2024-10-29 17:27:09) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just delete these three options, and the context
option as well for that matter. I can't find any references to them in the specs. #36555 points out that there used to be a gain
attribute, and that perhaps they were used for initializing that, but this also seems to be long gone.
cc @chrisdavidmills who knows about Web Audio.
@wbamberg so I could just remove the "Deprecated parameters' section. Like you said |
Yes, I think so! |
@wbamberg so could you please check the pull request I have made the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you @FizanMuhammedFaisal !
Summary of Changes
AudioBuffer
documentation to remove deprecated parameters (channelCount
,channelCountMode
,channelInterpretation
,context
).Reason for Change
The deprecated parameters were causing confusion, and removing them helps to clarify the expected usage of the
AudioBuffer
constructor.Related Issues
Motivation
The issue was put up by a reader knowledgeable about the topic, so I looked it up and fixed it.
Additional Details
current AudioBufferOptions: https://webaudio.github.io/web-audio-api/#AudioBufferOptions
current options(AudioBufferOptions) of AudioBuffer constructor in mdn web docs: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/AudioBuffer#options
Testing
Impact
These changes do not affect any existing functionality but clarify the documentation for future contributors.
Feedback Request
I’d appreciate any feedback on the clarity of the changes made to the documentation.