Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/resources/panner-model-testing.js |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/panner-model-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/panner-model-testing.js |
| index f96857f8dd181410f17b33026eee231fee027133..89a14a8cd1c902d7934d598a66772d0cb11e8132 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/resources/panner-model-testing.js |
| +++ b/third_party/WebKit/LayoutTests/webaudio/resources/panner-model-testing.js |
| @@ -26,7 +26,7 @@ var renderedBuffer; |
| var renderedLeft; |
| var renderedRight; |
| -function createGraph(context, nodeCount) { |
| +function createGraph(context, nodeCount, positionSetter) { |
| bufferSource = new Array(nodeCount); |
| panner = new Array(nodeCount); |
| position = new Array(nodeCount); |
| @@ -51,7 +51,8 @@ function createGraph(context, nodeCount) { |
| var angle = angleStep * k; |
| position[k] = {angle : angle, x : Math.cos(angle), z : Math.sin(angle)}; |
| - panner[k].setPosition(position[k].x, 0, position[k].z); |
| + //panner[k].setPosition(position[k].x, 0, position[k].z); |
|
hongchan
2016/05/03 18:15:01
Are we keeping this commented line as well?
Raymond Toy
2016/05/03 20:32:21
Should be deleted.
|
| + positionSetter(panner[k], position[k].x, 0, position[k].z); |
| bufferSource[k].connect(panner[k]); |
| panner[k].connect(context.destination); |
| @@ -62,10 +63,10 @@ function createGraph(context, nodeCount) { |
| } |
| } |
| -function createTestAndRun(context, nodeCount, numberOfSourceChannels) { |
| +function createTestAndRun(context, nodeCount, numberOfSourceChannels, positionSetter) { |
| numberOfChannels = numberOfSourceChannels; |
| - createGraph(context, nodeCount); |
| + createGraph(context, nodeCount, positionSetter); |
| context.oncomplete = checkResult; |
| context.startRendering(); |