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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return _createPanner(this); | 117 return _createPanner(this); |
118 } | 118 } |
119 static AudioPannerNode _createPanner(receiver) native; | 119 static AudioPannerNode _createPanner(receiver) native; |
120 | 120 |
121 WaveShaperNode createWaveShaper() { | 121 WaveShaperNode createWaveShaper() { |
122 return _createWaveShaper(this); | 122 return _createWaveShaper(this); |
123 } | 123 } |
124 static WaveShaperNode _createWaveShaper(receiver) native; | 124 static WaveShaperNode _createWaveShaper(receiver) native; |
125 | 125 |
126 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback = null]) { | 126 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback = null]) { |
127 if (errorCallback === null) { | 127 _decodeAudioData(this, audioData, successCallback, errorCallback); |
128 _decodeAudioData(this, audioData, successCallback); | 128 return; |
129 return; | |
130 } else { | |
131 _decodeAudioData_2(this, audioData, successCallback, errorCallback); | |
132 return; | |
133 } | |
134 } | 129 } |
135 static void _decodeAudioData(receiver, audioData, successCallback) native; | 130 static void _decodeAudioData(receiver, audioData, successCallback, errorCallba
ck) native; |
136 static void _decodeAudioData_2(receiver, audioData, successCallback, errorCall
back) native; | |
137 | 131 |
138 void startRendering() { | 132 void startRendering() { |
139 _startRendering(this); | 133 _startRendering(this); |
140 return; | 134 return; |
141 } | 135 } |
142 static void _startRendering(receiver) native; | 136 static void _startRendering(receiver) native; |
143 | 137 |
144 String get typeName() { return "AudioContext"; } | 138 String get typeName() { return "AudioContext"; } |
145 } | 139 } |
OLD | NEW |