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

Side by Side Diff: modules/webaudio/AudioParam.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 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 | Annotate | Revision Log
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 WillBeGarbageCollected, 30 WillBeGarbageCollected,
31 Conditional=WEB_AUDIO 31 Conditional=WEB_AUDIO
32 ] interface AudioParam { 32 ] interface AudioParam {
33 attribute float value; 33 attribute float value;
34 readonly attribute float minValue;
35 readonly attribute float maxValue;
36 readonly attribute float defaultValue; 34 readonly attribute float defaultValue;
37 35
38 readonly attribute DOMString name;
39
40 // FIXME: Could define units constants here (seconds, decibels, cents, etc.) ...
41 readonly attribute unsigned short units;
42
43 // Parameter automation. 36 // Parameter automation.
44 void setValueAtTime(float value, double time); 37 void setValueAtTime(float value, double time);
45 void linearRampToValueAtTime(float value, double time); 38 void linearRampToValueAtTime(float value, double time);
46 [RaisesException] void exponentialRampToValueAtTime(float value, double time ); 39 [RaisesException] void exponentialRampToValueAtTime(float value, double time );
47 40
48 // Exponentially approach the target with a rate having the given time const ant. 41 // Exponentially approach the target with a rate having the given time const ant.
49 void setTargetAtTime(float target, double time, double timeConstant); 42 void setTargetAtTime(float target, double time, double timeConstant);
50 43
51 // Sets an array of arbitrary parameter values starting at time for the give n duration. 44 // Sets an array of arbitrary parameter values starting at time for the give n duration.
52 // The number of values will be scaled to fit into the desired duration. 45 // The number of values will be scaled to fit into the desired duration.
53 // FIXMEDART(ager): Auto-generate this custom method when the info about 46 // FIXMEDART(ager): Auto-generate this custom method when the info about
54 // retaining typed arrays is in the IDL. 47 // retaining typed arrays is in the IDL.
55 [DartCustom] void setValueCurveAtTime(Float32Array values, double time, doub le duration); 48 [DartCustom] void setValueCurveAtTime(Float32Array values, double time, doub le duration);
56 49
57 // 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.
58 void cancelScheduledValues(double startTime); 51 void cancelScheduledValues(double startTime);
59 52
60 }; 53 };
OLDNEW
« no previous file with comments | « modules/webaudio/AudioBufferSourceNode.idl ('k') | modules/webdatabase/WorkerGlobalScopeWebDatabase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698