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

Unified Diff: LayoutTests/webaudio/panner-loop.html

Issue 652073003: Change the default panning mode from HRTF to equal-power (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/webaudio/panner-loop.html
diff --git a/LayoutTests/webaudio/panner-loop.html b/LayoutTests/webaudio/panner-loop.html
index e069dfdf963e83c22cd91a86444ecf06adcfa54b..c8bc2ea6ae0c86ff99c456db49375bb20ce12293 100644
--- a/LayoutTests/webaudio/panner-loop.html
+++ b/LayoutTests/webaudio/panner-loop.html
@@ -27,7 +27,7 @@
var sampleRate = 44100;
var renderLengthSeconds = 1;
-
+
// Create offline audio context.
var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
@@ -59,6 +59,9 @@
dry.connect(output);
var panner = context.createPanner();
+ // Default is 'equalpower', so change it to 'HRTF' for testing.
+ // https://code.google.com/p/chromium/issues/detail?id=424356
+ panner.panningModel = 'HRTF';
Raymond Toy 2014/10/17 17:39:30 If you don't do this, will the test fail? I don't
hongchan 2014/10/17 18:13:40 Done.
panner.coneOuterGain = 0.1;
panner.coneOuterAngle = 180;
panner.coneInnerAngle = 0;
@@ -75,10 +78,10 @@
};
context.startRendering();
}
-
+
runTest();
successfullyParsed = true;
</script>
-
+
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/webaudio/pannernode-basic.html » ('j') | LayoutTests/webaudio/pannernode-basic.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698