| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 10 matching lines...) Expand all Loading... |
| 21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 [ | 26 [ |
| 27 WillBeGarbageCollected, | 27 WillBeGarbageCollected, |
| 28 ActiveDOMObject, | 28 ActiveDOMObject, |
| 29 Conditional=WEB_AUDIO, | 29 Conditional=WEB_AUDIO, |
| 30 Constructor, | 30 Constructor, |
| 31 ConstructorCallWith=Document, | 31 ConstructorCallWith=ExecutionContext, |
| 32 NoInterfaceObject, | 32 NoInterfaceObject, |
| 33 RaisesException=Constructor, | 33 RaisesException=Constructor, |
| 34 ] interface AudioContext : EventTarget { | 34 ] interface AudioContext : EventTarget { |
| 35 | 35 |
| 36 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. | 36 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. |
| 37 readonly attribute AudioDestinationNode destination; | 37 readonly attribute AudioDestinationNode destination; |
| 38 | 38 |
| 39 // All scheduled times are relative to this time in seconds. | 39 // All scheduled times are relative to this time in seconds. |
| 40 readonly attribute double currentTime; | 40 readonly attribute double currentTime; |
| 41 | 41 |
| 42 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). | 42 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). |
| 43 readonly attribute float sampleRate; | 43 readonly attribute float sampleRate; |
| 44 | 44 |
| 45 // All panning is relative to this listener. | 45 // All panning is relative to this listener. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 // Channel splitting and merging | 74 // Channel splitting and merging |
| 75 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); | 75 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); |
| 76 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); | 76 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); |
| 77 | 77 |
| 78 // Offline rendering | 78 // Offline rendering |
| 79 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); | 79 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); |
| 80 attribute EventHandler oncomplete; | 80 attribute EventHandler oncomplete; |
| 81 void startRendering(); | 81 void startRendering(); |
| 82 }; | 82 }; |
| OLD | NEW |