Skip to content

Fix source to listener vector calculation for coneGain - #2712

Merged
mjwilson-google merged 1 commit into
WebAudio:mainfrom
orottier:patch-1
Nov 17, 2026
Merged

mjwilson-google merged 1 commit into
WebAudio:mainfrom
orottier:patch-1

Conversation

@orottier

@orottier orottier commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

A vector from A to B is B − A.
This fixes the pseudocode to make it correspond to the normative text.
Cross checked with the Chrome and Firefox implementation.
This actually made the web-audio-api-rs handle cones wrong orottier/web-audio-api-rs#665


Preview | Diff

A vector from A to B is B − A.
This fixes the pseudocode to make it correspond to the normative text
@orottier orottier changed the title Fix source to listener vector calculation Fix source to listener vector calculation for coneGain Nov 17, 2026

@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.

Thanks for catching this! It looks like the issue was introduced in #1263.

@mjwilson-google
mjwilson-google merged commit 42e974a into WebAudio:main Nov 17, 2026
1 check passed
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