OLD | NEW |
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 Loading... |
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 ] | 33 ] |
33 interface AudioBufferSourceNode : AudioSourceNode { | 34 interface AudioBufferSourceNode : AudioScheduledSourceNode { |
34 [RaisesException=Setter] attribute AudioBuffer buffer; | 35 [RaisesException=Setter] attribute AudioBuffer buffer; |
35 | 36 |
36 readonly attribute AudioParam playbackRate; | 37 readonly attribute AudioParam playbackRate; |
37 readonly attribute AudioParam detune; | 38 readonly attribute AudioParam detune; |
38 | 39 |
39 attribute boolean loop; | 40 attribute boolean loop; |
40 attribute double loopStart; | 41 attribute double loopStart; |
41 attribute double loopEnd; | 42 attribute double loopEnd; |
42 | 43 |
43 [RaisesException] void start(optional double when, optional double grainOffs
et, optional double grainDuration); | 44 [RaisesException] void start(optional double when = 0, optional double grain
Offset, optional double grainDuration); |
44 [RaisesException] void stop(optional double when); | |
45 | 45 |
46 attribute EventHandler onended; | |
47 }; | 46 }; |
OLD | NEW |