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

Issue 301733002: Make panner's doppler rate continuous as the source position approaches the listener position. (Closed)

Created:
6 years, 6 months ago by Raymond Toy
Modified:
6 years, 6 months ago
CC:
blink-reviews
Visibility:
Public.

Description

The issue is summarized here: https://github.com/WebAudio/web-audio-api/issues/324 This CL can't solve all issues when the source position approaches the listener position because when the locations are equal, we get a singular point in the equations. This just makes it continuous as the source approaches the listener. If the source then goes past, there will be a unavoidable discontinuity. TEST=Listen to http://jsfiddle.net/UxwGP/10. When the slider position is 0, there should be no sudden change in pitch. TEST=Listen to http://jsfiddle.net/qWHAt/34/ using mono source and HRTF panner. Initially, the pitch is very low. Move the slider just to the left or right of center and the pitch goes up. As you move the slider through center slowly, the pitch drops drastically at center. With this CL, this the pitch does not start out low, and as you move the slider around, the pitch never drops low at center. There is a discontinuity moving from left to right, but this is because the source was moving away from the listener and is not moving towards the listener. BUG=141739 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175175

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -21 lines) Patch
M Source/modules/webaudio/PannerNode.cpp View 1 2 chunks +21 lines, -21 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Raymond Toy
PTAL.
6 years, 6 months ago (2014-05-27 21:41:53 UTC) #1
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp File Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode389 Source/modules/webaudio/PannerNode.cpp:389: // Degenerate case if source and listener are at ...
6 years, 6 months ago (2014-05-27 23:24:43 UTC) #2
KhNo
https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp File Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode388 Source/modules/webaudio/PannerNode.cpp:388: if (sourceListener.isZero()) { How do you think if we ...
6 years, 6 months ago (2014-05-28 13:57:20 UTC) #3
Raymond Toy
https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp File Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode389 Source/modules/webaudio/PannerNode.cpp:389: // Degenerate case if source and listener are at ...
6 years, 6 months ago (2014-05-28 17:17:22 UTC) #4
Raymond Toy
https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp File Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode388 Source/modules/webaudio/PannerNode.cpp:388: if (sourceListener.isZero()) { On 2014/05/28 13:57:20, KhNo wrote: > ...
6 years, 6 months ago (2014-05-28 17:19:16 UTC) #5
Ken Russell (switch to Gerrit)
I still think it would be more robust to use the cached values when the ...
6 years, 6 months ago (2014-05-28 17:37:39 UTC) #6
Raymond Toy
https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp File Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode388 Source/modules/webaudio/PannerNode.cpp:388: if (sourceListener.isZero()) { On 2014/05/28 17:19:16, Raymond Toy wrote: ...
6 years, 6 months ago (2014-05-28 18:25:26 UTC) #7
Raymond Toy
On 2014/05/28 17:37:39, Ken Russell wrote: > I still think it would be more robust ...
6 years, 6 months ago (2014-05-28 18:29:55 UTC) #8
Raymond Toy
On 2014/05/28 18:25:26, Raymond Toy wrote: > https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp > File Source/modules/webaudio/PannerNode.cpp (right): > > https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode388 ...
6 years, 6 months ago (2014-05-28 18:43:22 UTC) #9
Raymond Toy
On 2014/05/28 18:43:22, Raymond Toy wrote: > On 2014/05/28 18:25:26, Raymond Toy wrote: > > ...
6 years, 6 months ago (2014-05-28 23:34:31 UTC) #10
KhNo
On 2014/05/28 23:34:31, Raymond Toy wrote: > On 2014/05/28 18:43:22, Raymond Toy wrote: > > ...
6 years, 6 months ago (2014-05-29 16:55:44 UTC) #11
Raymond Toy
https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp File Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/301733002/diff/1/Source/modules/webaudio/PannerNode.cpp#newcode388 Source/modules/webaudio/PannerNode.cpp:388: if (sourceListener.isZero()) { On 2014/05/28 18:25:26, Raymond Toy wrote: ...
6 years, 6 months ago (2014-05-29 18:22:13 UTC) #12
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
6 years, 6 months ago (2014-05-30 16:33:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@chromium.org/301733002/20001
6 years, 6 months ago (2014-05-30 16:35:24 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-30 17:46:47 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 18:48:34 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/22134)
6 years, 6 months ago (2014-05-30 18:48:34 UTC) #17
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
6 years, 6 months ago (2014-05-30 21:52:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@chromium.org/301733002/20001
6 years, 6 months ago (2014-05-30 21:53:10 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 23:57:14 UTC) #20
Message was sent while issue was closed.
Change committed as 175175

Powered by Google App Engine
This is Rietveld 408576698