| <!DOCTYPE html> |
| <html class="a"> |
| <head> |
| <title>AudioParam IDL Test</title> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="/resources/idlharness.js"></script> |
| <script src="/resources/WebIDLParser.js"></script> |
| <style type="text/css"> |
| #audio-param-idl |
| { visibility:hidden; height: 0px;} |
| </style> |
| </head> |
| <body class="a"> |
| |
| <pre id="audio-param-idl">interface AudioParam { |
| |
| attribute float value; |
| readonly attribute float defaultValue; |
| readonly attribute float minValue; |
| readonly attribute float maxValue; |
| |
| // Parameter automation. |
| void setValueAtTime(float value, double startTime); |
| void linearRampToValueAtTime(float value, double endTime); |
| void exponentialRampToValueAtTime(float value, double endTime); |
| |
| // Exponentially approach the target value with a rate having the given time constant. |
| void setTargetAtTime(float target, double startTime, double timeConstant); |
| |
| // Sets an array of arbitrary parameter values starting at time for the given duration. |
| // The number of values will be scaled to fit into the desired duration. |
| void setValueCurveAtTime(Float32Array values, double startTime, double duration); |
| |
| // Cancels all scheduled parameter changes with times greater than or equal to startTime. |
| void cancelScheduledValues(double startTime); |
| |
| };</pre> |
| |
| <div id="log"></div> |
| |
| <script> |
| (function() { |
| var idl_array = new IdlArray(); |
| idl_array.add_idls(document.getElementById("audio-param-idl").textContent); |
| |
| delay_time = (new AudioContext).createDelay().delayTime; |
| |
| idl_array.add_objects({AudioParam: ["delay_time"]}); |
| idl_array.test(); |
| })(); |
| </script> |
| </body> |
| </html> |