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

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

Issue 2471353004: Implement AudioScheduledSourceNode (Closed)
Patch Set: Rebaseline test Created 3 years, 11 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
23 * DAMAGE. 23 * DAMAGE.
24 */ 24 */
25 25
26 // A cached (non-streamed), memory-resident audio source 26 // A cached (non-streamed), memory-resident audio source
27 // See https://webaudio.github.io/web-audio-api/#AudioBufferSourceNode 27 // See https://webaudio.github.io/web-audio-api/#AudioBufferSourceNode
28 [ 28 [
29 Constructor(BaseAudioContext context, optional AudioBufferSourceOptions opti ons), 29 Constructor(BaseAudioContext context, optional AudioBufferSourceOptions opti ons),
30 RaisesException=Constructor, 30 RaisesException=Constructor,
31 ActiveScriptWrappable, 31 ActiveScriptWrappable,
32 DependentLifetime,
32 Measure 33 Measure
33 ] 34 ]
34 interface AudioBufferSourceNode : AudioSourceNode { 35 interface AudioBufferSourceNode : AudioScheduledSourceNode {
35 [RaisesException=Setter] attribute AudioBuffer buffer; 36 [RaisesException=Setter] attribute AudioBuffer buffer;
36 37
37 readonly attribute AudioParam playbackRate; 38 readonly attribute AudioParam playbackRate;
38 readonly attribute AudioParam detune; 39 readonly attribute AudioParam detune;
39 40
40 attribute boolean loop; 41 attribute boolean loop;
41 attribute double loopStart; 42 attribute double loopStart;
42 attribute double loopEnd; 43 attribute double loopEnd;
43 44
44 [RaisesException] void start(optional double when, optional double grainOffs et, optional double grainDuration); 45 [RaisesException] void start(optional double when = 0, optional double grain Offset, optional double grainDuration);
45 [RaisesException] void stop(optional double when);
46 46
47 attribute EventHandler onended;
48 }; 47 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698