summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webaudio/AudioParam.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/webaudio/AudioParam.idl')
-rw-r--r--Source/WebCore/Modules/webaudio/AudioParam.idl25
1 files changed, 11 insertions, 14 deletions
diff --git a/Source/WebCore/Modules/webaudio/AudioParam.idl b/Source/WebCore/Modules/webaudio/AudioParam.idl
index 605462b46..cda277762 100644
--- a/Source/WebCore/Modules/webaudio/AudioParam.idl
+++ b/Source/WebCore/Modules/webaudio/AudioParam.idl
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -29,10 +29,10 @@
[
Conditional=WEB_AUDIO,
] interface AudioParam {
- attribute float value;
- readonly attribute float minValue;
- readonly attribute float maxValue;
- readonly attribute float defaultValue;
+ attribute unrestricted float value;
+ readonly attribute unrestricted float minValue;
+ readonly attribute unrestricted float maxValue;
+ readonly attribute unrestricted float defaultValue;
readonly attribute DOMString name;
@@ -40,20 +40,17 @@
readonly attribute unsigned short units;
// Parameter automation.
- void setValueAtTime(float value, float time);
- void linearRampToValueAtTime(float value, float time);
- void exponentialRampToValueAtTime(float value, float time);
+ void setValueAtTime(unrestricted float value, unrestricted float time);
+ void linearRampToValueAtTime(unrestricted float value, unrestricted float time);
+ void exponentialRampToValueAtTime(unrestricted float value, unrestricted float time);
// Exponentially approach the target with a rate having the given time constant.
- void setTargetAtTime(float target, float time, float timeConstant);
+ void setTargetAtTime(unrestricted float target, unrestricted float time, unrestricted float 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, float time, float duration);
+ void setValueCurveAtTime(Float32Array? values, unrestricted float time, unrestricted float duration); // FIXME: values should not be nullable.
// Cancels all scheduled parameter changes with times greater than or equal to startTime.
- void cancelScheduledValues(float startTime);
-
- [Conditional=LEGACY_WEB_AUDIO, ImplementedAs=setTargetAtTime] void setTargetValueAtTime(float targetValue, float time, float timeConstant);
-
+ void cancelScheduledValues(unrestricted float startTime);
};