Bug 1518378 - Set panningModel on warm-up panner. r=padenot, a=test-only
authorKarl Tomlinson <karlt+@karlt.net>
Fri, 15 Feb 2019 14:38:48 +0000
changeset 516042 596f118fa8e31d8ca8f34ac970d8f308e464b47c
parent 516041 6665a69320cb742977884430362d9748e7fa8954
child 516043 2d73b02c64e35c65823e26e7eb620241ff83b5af
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot, test-only
bugs1518378
milestone66.0
Bug 1518378 - Set panningModel on warm-up panner. r=padenot, a=test-only This is required since changes in https://hg.mozilla.org/mozilla-central/rev/5636007e3d1a Differential Revision: https://phabricator.services.mozilla.com/D19121
dom/media/webaudio/test/test_pannerNodeHRTFSymmetry.html
--- a/dom/media/webaudio/test/test_pannerNodeHRTFSymmetry.html
+++ b/dom/media/webaudio/test/test_pannerNodeHRTFSymmetry.html
@@ -78,16 +78,17 @@ function startTest() {
     }
 }
 
 function prepareTest() {
   // A PannerNode will produce no output until it has loaded its HRIR
   // database.  Wait for this to load before starting the test.
   var processor = ctx.createScriptProcessor(bufferSize, 2, 0);
   var panner = ctx.createPanner();
+  panner.panningModel = "HRTF";
   panner.connect(processor);
   var oscillator = ctx.createOscillator();
   oscillator.connect(panner);
   oscillator.start(0);
 
   processor.onaudioprocess =
     function(e) {
       if (isChannelSilent(e.inputBuffer.getChannelData(0)))