Bug 1055512 - Actually input a stereo buffer into the ScriptProcessorNode in the test case for that node; r=padenot
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 19 Aug 2014 15:10:54 -0400
changeset 200373 6613f71f4f900e92111ec0cde31c35f27962e5e4
parent 200372 587ef44dcc8e0ca642d0c616dcfa63766a01525f
child 200374 d70904f0973911153ef2db4e057e7c4225b282bd
push id47881
push usereakhgari@mozilla.com
push dateTue, 19 Aug 2014 19:11:30 +0000
treeherdermozilla-inbound@d70904f09739 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1055512
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1055512 - Actually input a stereo buffer into the ScriptProcessorNode in the test case for that node; r=padenot
content/media/webaudio/test/test_scriptProcessorNode.html
--- a/content/media/webaudio/test/test_scriptProcessorNode.html
+++ b/content/media/webaudio/test/test_scriptProcessorNode.html
@@ -21,17 +21,17 @@ addLoadEvent(function() {
   var buffer = null;
 
   var sourceSP = context.createScriptProcessor(2048);
   sourceSP.addEventListener("audioprocess", function(e) {
     // generate the audio
     for (var i = 0; i < 2048; ++i) {
       // Make sure our first sample won't be zero
       e.outputBuffer.getChannelData(0)[i] = Math.sin(440 * 2 * Math.PI * (i + 1) / context.sampleRate);
-      e.outputBuffer.getChannelData(0)[i] = Math.sin(880 * 2 * Math.PI * (i + 1) / context.sampleRate);
+      e.outputBuffer.getChannelData(1)[i] = Math.sin(880 * 2 * Math.PI * (i + 1) / context.sampleRate);
     }
     // Remember our generated audio
     buffer = e.outputBuffer;
 
     sourceSP.removeEventListener("audioprocess", arguments.callee);
   }, false);
 
   expectException(function() {