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

Side by Side Diff: third_party/WebCore/Modules/webaudio/AudioContext.idl

Issue 9958151: Update script to fetch new WebCore IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N
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
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 module webaudio {
27 interface [
28 Conditional=WEB_AUDIO,
29 ActiveDOMObject,
30 CustomConstructor,
31 ConstructorParameters=0,
32 JSCustomMarkFunction,
33 EventTarget
34 ] AudioContext {
35 // All rendered audio ultimately connects to destination, which represen ts the audio hardware.
36 readonly attribute AudioDestinationNode destination;
37
38 // All scheduled times are relative to this time in seconds.
39 readonly attribute float currentTime;
40
41 // All AudioNodes in the context run at this sample-rate (in sample-fram es per second).
42 readonly attribute float sampleRate;
43
44 // All panning is relative to this listener.
45 readonly attribute AudioListener listener;
46
47 // Number of AudioBufferSourceNodes that are currently playing.
48 readonly attribute unsigned long activeSourceCount;
49
50 AudioBuffer createBuffer(in unsigned long numberOfChannels, in unsigned long numberOfFrames, in float sampleRate)
51 raises(DOMException);
52 AudioBuffer createBuffer(in ArrayBuffer buffer, in boolean mixToMono)
53 raises(DOMException);
54
55 // Asynchronous audio file data decoding.
56 void decodeAudioData(in ArrayBuffer audioData, in [Callback] AudioBuffer Callback successCallback, in [Optional, Callback] AudioBufferCallback errorCallb ack)
57 raises(DOMException);
58
59 // Sources
60 AudioBufferSourceNode createBufferSource();
61 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO
62 MediaElementAudioSourceNode createMediaElementSource(in HTMLMediaElement mediaElement)
63 raises(DOMException);
64 #endif
65 // Processing nodes
66 AudioGainNode createGainNode();
67 DelayNode createDelayNode(in [Optional] double maxDelayTime);
68 BiquadFilterNode createBiquadFilter();
69 WaveShaperNode createWaveShaper();
70 LowPass2FilterNode createLowPass2Filter();
71 HighPass2FilterNode createHighPass2Filter();
72 AudioPannerNode createPanner();
73 ConvolverNode createConvolver();
74 DynamicsCompressorNode createDynamicsCompressor();
75 RealtimeAnalyserNode createAnalyser();
76 JavaScriptAudioNode createJavaScriptNode(in unsigned long bufferSize);
77
78 // Channel splitting and merging
79 AudioChannelSplitter createChannelSplitter();
80 AudioChannelMerger createChannelMerger();
81
82 // Offline rendering
83 // void prepareOfflineBufferRendering(in unsigned long numberOfChannels, in unsigned long numberOfFrames, in float sampleRate);
84 attribute EventListener oncomplete;
85 void startRendering();
86 };
87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698