OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 class _AudioContextWrappingImplementation extends DOMWrapperBase implements Audi
oContext { | 7 class _AudioContextWrappingImplementation extends DOMWrapperBase implements Audi
oContext { |
8 _AudioContextWrappingImplementation() : super() {} | 8 _AudioContextWrappingImplementation() : super() {} |
9 | 9 |
10 static create__AudioContextWrappingImplementation() native { | 10 static create__AudioContextWrappingImplementation() native { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 AudioChannelSplitter createChannelSplitter() { | 71 AudioChannelSplitter createChannelSplitter() { |
72 return _createChannelSplitter(this); | 72 return _createChannelSplitter(this); |
73 } | 73 } |
74 static AudioChannelSplitter _createChannelSplitter(receiver) native; | 74 static AudioChannelSplitter _createChannelSplitter(receiver) native; |
75 | 75 |
76 ConvolverNode createConvolver() { | 76 ConvolverNode createConvolver() { |
77 return _createConvolver(this); | 77 return _createConvolver(this); |
78 } | 78 } |
79 static ConvolverNode _createConvolver(receiver) native; | 79 static ConvolverNode _createConvolver(receiver) native; |
80 | 80 |
81 DelayNode createDelayNode() { | 81 DelayNode createDelayNode([num maxDelayTime = null]) { |
82 return _createDelayNode(this); | 82 if (maxDelayTime === null) { |
| 83 return _createDelayNode(this); |
| 84 } else { |
| 85 return _createDelayNode_2(this, maxDelayTime); |
| 86 } |
83 } | 87 } |
84 static DelayNode _createDelayNode(receiver) native; | 88 static DelayNode _createDelayNode(receiver) native; |
| 89 static DelayNode _createDelayNode_2(receiver, maxDelayTime) native; |
85 | 90 |
86 DynamicsCompressorNode createDynamicsCompressor() { | 91 DynamicsCompressorNode createDynamicsCompressor() { |
87 return _createDynamicsCompressor(this); | 92 return _createDynamicsCompressor(this); |
88 } | 93 } |
89 static DynamicsCompressorNode _createDynamicsCompressor(receiver) native; | 94 static DynamicsCompressorNode _createDynamicsCompressor(receiver) native; |
90 | 95 |
91 AudioGainNode createGainNode() { | 96 AudioGainNode createGainNode() { |
92 return _createGainNode(this); | 97 return _createGainNode(this); |
93 } | 98 } |
94 static AudioGainNode _createGainNode(receiver) native; | 99 static AudioGainNode _createGainNode(receiver) native; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 static void _decodeAudioData(receiver, audioData, successCallback, errorCallba
ck) native; | 135 static void _decodeAudioData(receiver, audioData, successCallback, errorCallba
ck) native; |
131 | 136 |
132 void startRendering() { | 137 void startRendering() { |
133 _startRendering(this); | 138 _startRendering(this); |
134 return; | 139 return; |
135 } | 140 } |
136 static void _startRendering(receiver) native; | 141 static void _startRendering(receiver) native; |
137 | 142 |
138 String get typeName() { return "AudioContext"; } | 143 String get typeName() { return "AudioContext"; } |
139 } | 144 } |
OLD | NEW |