Title: [106974] trunk/LayoutTests
Revision
106974
Author
commit-qu...@webkit.org
Date
2012-02-07 12:16:09 -0800 (Tue, 07 Feb 2012)

Log Message

createImpulseBuffer uses incorrect length
https://bugs.webkit.org/show_bug.cgi?id=77665

Patch by Raymond Toy <r...@google.com> on 2012-02-07
Reviewed by Kenneth Russell.

* webaudio/resources/audio-testing.js:
(createImpulseBuffer):  Fix bug so the buffer has the correct
length.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (106973 => 106974)


--- trunk/LayoutTests/ChangeLog	2012-02-07 20:04:23 UTC (rev 106973)
+++ trunk/LayoutTests/ChangeLog	2012-02-07 20:16:09 UTC (rev 106974)
@@ -1,3 +1,14 @@
+2012-02-07  Raymond Toy  <r...@google.com>
+
+        createImpulseBuffer uses incorrect length
+        https://bugs.webkit.org/show_bug.cgi?id=77665
+
+        Reviewed by Kenneth Russell.
+
+        * webaudio/resources/audio-testing.js:
+        (createImpulseBuffer):  Fix bug so the buffer has the correct
+        length. 
+
 2012-02-07  Abhishek Arya  <infe...@chromium.org>
 
         Crash in ContainerNode functions due to mutation events.

Modified: trunk/LayoutTests/webaudio/resources/audio-testing.js (106973 => 106974)


--- trunk/LayoutTests/webaudio/resources/audio-testing.js	2012-02-07 20:04:23 UTC (rev 106973)
+++ trunk/LayoutTests/webaudio/resources/audio-testing.js	2012-02-07 20:16:09 UTC (rev 106974)
@@ -108,7 +108,7 @@
 
 // Create an impulse in a buffer of length sampleFrameLength
 function createImpulseBuffer(context, sampleFrameLength) {
-    var audioBuffer = context.createBuffer(1, 1000, context.sampleRate);
+    var audioBuffer = context.createBuffer(1, sampleFrameLength, context.sampleRate);
     var n = audioBuffer.length;
     var dataL = audioBuffer.getChannelData(0);
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to