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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 [ | 26 [ |
27 GarbageCollected, | 27 GarbageCollected, |
28 ActiveDOMObject, | 28 ActiveDOMObject, |
29 Conditional=WEB_AUDIO, | 29 Conditional=WEB_AUDIO, |
30 Constructor, | 30 Constructor, |
31 ConstructorCallWith=Document, | 31 ConstructorCallWith=Document, |
32 NoInterfaceObject, | 32 NoInterfaceObject, |
33 RaisesException=Constructor, | 33 RaisesException=Constructor, |
34 ] interface AudioContext : EventTarget { | 34 ] interface AudioContext : EventTarget { |
35 | |
36 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. | 35 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. |
37 readonly attribute AudioDestinationNode destination; | 36 readonly attribute AudioDestinationNode destination; |
38 | 37 |
39 // All scheduled times are relative to this time in seconds. | 38 // All scheduled times are relative to this time in seconds. |
40 readonly attribute double currentTime; | 39 readonly attribute double currentTime; |
41 | 40 |
42 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). | 41 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). |
43 readonly attribute float sampleRate; | 42 readonly attribute float sampleRate; |
44 | 43 |
45 // All panning is relative to this listener. | 44 // All panning is relative to this listener. |
(...skipping 27 matching lines...) Expand all Loading... |
73 | 72 |
74 // Channel splitting and merging | 73 // Channel splitting and merging |
75 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); | 74 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); |
76 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); | 75 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); |
77 | 76 |
78 // Offline rendering | 77 // Offline rendering |
79 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); | 78 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); |
80 attribute EventHandler oncomplete; | 79 attribute EventHandler oncomplete; |
81 void startRendering(); | 80 void startRendering(); |
82 }; | 81 }; |
OLD | NEW |