Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioParam.idl

Issue 1803153002: Add min/max values for AudioParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 [ 29 [
30 ] interface AudioParam { 30 ] interface AudioParam {
31 attribute float value; 31 attribute float value;
32 readonly attribute float defaultValue; 32 readonly attribute float defaultValue;
33 33
34 // Nominal range for the value.
35 readonly attribute float minValue;
36 readonly attribute float maxValue;
37
34 // Parameter automation. 38 // Parameter automation.
35 [RaisesException, MeasureAs=AudioParamSetValueAtTime] AudioParam setValueAtT ime(float value, double time); 39 [RaisesException, MeasureAs=AudioParamSetValueAtTime] AudioParam setValueAtT ime(float value, double time);
36 [RaisesException, MeasureAs=AudioParamLinearRampToValueAtTime] AudioParam li nearRampToValueAtTime(float value, double time); 40 [RaisesException, MeasureAs=AudioParamLinearRampToValueAtTime] AudioParam li nearRampToValueAtTime(float value, double time);
37 [RaisesException, MeasureAs=AudioParamExponentialRampToValueAtTime] AudioPar am exponentialRampToValueAtTime(float value, double time); 41 [RaisesException, MeasureAs=AudioParamExponentialRampToValueAtTime] AudioPar am exponentialRampToValueAtTime(float value, double time);
38 42
39 // Exponentially approach the target with a rate having the given time const ant. 43 // Exponentially approach the target with a rate having the given time const ant.
40 [RaisesException, MeasureAs=AudioParamSetTargetAtTime] AudioParam setTargetA tTime(float target, double time, double timeConstant); 44 [RaisesException, MeasureAs=AudioParamSetTargetAtTime] AudioParam setTargetA tTime(float target, double time, double timeConstant);
41 45
42 // Sets an array of arbitrary parameter values starting at time for the give n duration. 46 // Sets an array of arbitrary parameter values starting at time for the give n duration.
43 // The number of values will be scaled to fit into the desired duration. 47 // The number of values will be scaled to fit into the desired duration.
44 [RaisesException, MeasureAs=AudioParamSetValueCurveAtTime] AudioParam setVal ueCurveAtTime(Float32Array values, double time, double duration); 48 [RaisesException, MeasureAs=AudioParamSetValueCurveAtTime] AudioParam setVal ueCurveAtTime(Float32Array values, double time, double duration);
45 49
46 // Cancels all scheduled parameter changes with times greater than or equal to startTime. 50 // Cancels all scheduled parameter changes with times greater than or equal to startTime.
47 [RaisesException, MeasureAs=AudioParamCancelScheduledValues] AudioParam canc elScheduledValues(double startTime); 51 [RaisesException, MeasureAs=AudioParamCancelScheduledValues] AudioParam canc elScheduledValues(double startTime);
48 52
49 }; 53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698