Bug 213360 - Remove setVelocity() from PannerNode
Summary: Remove setVelocity() from PannerNode
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Clark Wang
URL:
Keywords: InRadar
Depends on:
Blocks: 212611
  Show dependency treegraph
 
Reported: 2020-06-18 15:43 PDT by Clark Wang
Modified: 2020-06-19 17:54 PDT (History)
11 users (show)

See Also:


Attachments
Patch (5.49 KB, patch)
2020-06-18 17:11 PDT, Clark Wang
no flags Details | Formatted Diff | Diff
Patch (7.05 KB, patch)
2020-06-19 09:11 PDT, Clark Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Clark Wang 2020-06-18 15:43:40 PDT
Removed velocity from PannerNode
Comment 1 Clark Wang 2020-06-18 17:11:16 PDT
Created attachment 402253 [details]
Patch
Comment 2 Chris Dumez 2020-06-18 17:15:22 PDT
Comment on attachment 402253 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402253&action=review

> Source/WebCore/ChangeLog:8
> +        Re-baselined previous test that now passes with velocity removed.

Changelog is missing an explanation of the change and a link to the relevant spec section.
Comment 3 Darin Adler 2020-06-18 17:24:47 PDT
Comment on attachment 402253 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402253&action=review

> Source/WebCore/Modules/webaudio/PannerNode.cpp:307
> +        const FloatPoint3D& sourceVelocity = FloatPoint3D(0, 0, 0);

This seems a peculiar way to write this. Not even sure it has defined behavior. I think the FloatPoint3D object may be destroyed and the end of the full expression?

Maybe this should just be:

    const FloatPoint32 listenerVelocity;

But of course, this is also a constant that’s always zero and so we could simplify the code below.
Comment 4 Clark Wang 2020-06-19 09:11:51 PDT
Created attachment 402289 [details]
Patch
Comment 5 EWS 2020-06-19 17:53:46 PDT
Committed r263304: <https://trac.webkit.org/changeset/263304>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 402289 [details].
Comment 6 Radar WebKit Bug Importer 2020-06-19 17:54:34 PDT
<rdar://problem/64551041>