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 214768 6613f71f4f900e92111ec0cde31c35f27962e5e4
parent 214767 587ef44dcc8e0ca642d0c616dcfa63766a01525f
child 214769 d70904f0973911153ef2db4e057e7c4225b282bd
push idunknown
push userunknown
push dateunknown
reviewerspadenot
bugs1055512
milestone34.0a1
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() {