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