Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2661)

Issue 2859143004: Correctly clamp in distance formulas (Closed)

Created:
3 years, 7 months ago by Raymond Toy
Modified:
3 years, 7 months ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews, kinuko+watch, Raymond Toy, hongchan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly clamp in distance formulas The clamping of the distance formulas was incorrect. Implement clamping according to the spec. BUG=718069 TEST=panner-distance-clamping.html Review-Url: https://codereview.chromium.org/2859143004 Cr-Commit-Position: refs/heads/master@{#469824} Committed: https://chromium.googlesource.com/chromium/src/+/c8faec73855c122f94f00c54549ee6542da59e9b

Patch Set 1 #

Patch Set 2 : Clamp distance correctly #

Total comments: 6

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -18 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/resources/panner-formulas.js View 1 chunk +11 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/Distance.cpp View 1 2 3 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Raymond Toy
PTAL
3 years, 7 months ago (2017-05-05 17:33:32 UTC) #3
hongchan
https://codereview.chromium.org/2859143004/diff/20001/third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html File third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html (right): https://codereview.chromium.org/2859143004/diff/20001/third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html#newcode201 third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html:201: var xRef = Math.max(options.distance, pannerRef.refDistance);; I see "double semicolon" ...
3 years, 7 months ago (2017-05-05 18:07:58 UTC) #4
Raymond Toy
https://codereview.chromium.org/2859143004/diff/20001/third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html File third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html (right): https://codereview.chromium.org/2859143004/diff/20001/third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html#newcode201 third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html:201: var xRef = Math.max(options.distance, pannerRef.refDistance);; On 2017/05/05 18:07:58, hongchan ...
3 years, 7 months ago (2017-05-05 18:18:29 UTC) #5
hongchan
lgtm
3 years, 7 months ago (2017-05-05 21:47:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2859143004/40001
3 years, 7 months ago (2017-05-05 21:54:05 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 00:16:17 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c8faec73855c122f94f00c54549e...

Powered by Google App Engine
This is Rietveld 408576698