Title: [138002] trunk/LayoutTests
Revision
138002
Author
[email protected]
Date
2012-12-18 02:40:18 -0800 (Tue, 18 Dec 2012)

Log Message

webaudio/oscillator* tests should use OfflineAudioContext
https://bugs.webkit.org/show_bug.cgi?id=105174

Reviewed by Kentaro Hara.

webaudio/oscillator* tests were using the slower webkitAudioContext for output rendering.
Replacing the usage with webkitOfflineAudioContext allows for faster-than-realtime rendering
in testing. Also, it avoids a deprecation warning on the console.

* webaudio/resources/oscillator-testing.js: Replace usage of webkitAudioContext with webkitOfflineAudioContext
(generateExponentialOscillatorSweep):

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (138001 => 138002)


--- trunk/LayoutTests/ChangeLog	2012-12-18 10:07:53 UTC (rev 138001)
+++ trunk/LayoutTests/ChangeLog	2012-12-18 10:40:18 UTC (rev 138002)
@@ -1,3 +1,17 @@
+2012-12-18  Dominik Röttsches  <[email protected]>
+
+        webaudio/oscillator* tests should use OfflineAudioContext
+        https://bugs.webkit.org/show_bug.cgi?id=105174
+
+        Reviewed by Kentaro Hara.
+
+        webaudio/oscillator* tests were using the slower webkitAudioContext for output rendering.
+        Replacing the usage with webkitOfflineAudioContext allows for faster-than-realtime rendering
+        in testing. Also, it avoids a deprecation warning on the console.
+
+        * webaudio/resources/oscillator-testing.js: Replace usage of webkitAudioContext with webkitOfflineAudioContext
+        (generateExponentialOscillatorSweep):
+
 2012-12-18  Csaba Osztrogonác  <[email protected]>
 
         Unreviewed gardening.

Modified: trunk/LayoutTests/webaudio/resources/oscillator-testing.js (138001 => 138002)


--- trunk/LayoutTests/webaudio/resources/oscillator-testing.js	2012-12-18 10:07:53 UTC (rev 138001)
+++ trunk/LayoutTests/webaudio/resources/oscillator-testing.js	2012-12-18 10:40:18 UTC (rev 138002)
@@ -27,7 +27,7 @@
 
 function generateExponentialOscillatorSweep(oscillatorType) {
     // Create offline audio context.
-    context = new webkitAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
+    context = new webkitOfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
 
     var osc = context.createOscillator();
     if (oscillatorType == OSC.CUSTOM) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to