Index: modules/webaudio/AudioParam.idl |
diff --git a/modules/webaudio/AudioParam.idl b/modules/webaudio/AudioParam.idl |
index 7b499f49abf5b4ed04f83e2ae9cf30827e62c0e3..02501ec73ee8436f87657f317eb7d58d6c9c474a 100644 |
--- a/modules/webaudio/AudioParam.idl |
+++ b/modules/webaudio/AudioParam.idl |
@@ -28,24 +28,23 @@ |
[ |
GarbageCollected, |
- Conditional=WEB_AUDIO, |
] interface AudioParam { |
attribute float value; |
readonly attribute float defaultValue; |
// Parameter automation. |
- [RaisesException] void setValueAtTime(float value, double time); |
- [RaisesException] void linearRampToValueAtTime(float value, double time); |
- [RaisesException] void exponentialRampToValueAtTime(float value, double time); |
+ [RaisesException, MeasureAs=AudioParamSetValueAtTime] AudioParam setValueAtTime(float value, double time); |
+ [RaisesException, MeasureAs=AudioParamLinearRampToValueAtTime] AudioParam linearRampToValueAtTime(float value, double time); |
+ [RaisesException, MeasureAs=AudioParamExponentialRampToValueAtTime] AudioParam exponentialRampToValueAtTime(float value, double time); |
// Exponentially approach the target with a rate having the given time constant. |
- [RaisesException] void setTargetAtTime(float target, double time, double timeConstant); |
+ [RaisesException, MeasureAs=AudioParamSetTargetAtTime] AudioParam setTargetAtTime(float target, double time, 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. |
- [RaisesException] void setValueCurveAtTime(Float32Array values, double time, double duration); |
+ [RaisesException, MeasureAs=AudioParamSetValueCurveAtTime] AudioParam setValueCurveAtTime(Float32Array values, double time, double duration); |
// Cancels all scheduled parameter changes with times greater than or equal to startTime. |
- [RaisesException] void cancelScheduledValues(double startTime); |
+ [RaisesException, MeasureAs=AudioParamCancelScheduledValues] AudioParam cancelScheduledValues(double startTime); |
}; |