| OLD | NEW |
| 1 library dart.dom.web_audio; | 1 library dart.dom.web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_internal' hide deprecated; | 5 import 'dart:_internal' hide deprecated; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 import 'dart:_blink' as _blink; | 10 import 'dart:_blink' as _blink; |
| (...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 | 1145 |
| 1146 | 1146 |
| 1147 @DocsEditable() | 1147 @DocsEditable() |
| 1148 @DomName('ScriptProcessorNode') | 1148 @DomName('ScriptProcessorNode') |
| 1149 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode | 1149 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode |
| 1150 @Experimental() | 1150 @Experimental() |
| 1151 class ScriptProcessorNode extends AudioNode { | 1151 class ScriptProcessorNode extends AudioNode { |
| 1152 // To suppress missing implicit constructor warnings. | 1152 // To suppress missing implicit constructor warnings. |
| 1153 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} | 1153 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} |
| 1154 | 1154 |
| 1155 /** |
| 1156 * Static factory designed to expose `audioprocess` events to event |
| 1157 * handlers that are not necessarily instances of [ScriptProcessorNode]. |
| 1158 * |
| 1159 * See [EventStreamProvider] for usage information. |
| 1160 */ |
| 1161 @DomName('ScriptProcessorNode.audioprocessEvent') |
| 1162 @DocsEditable() |
| 1163 @Experimental() // untriaged |
| 1164 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = con
st EventStreamProvider<AudioProcessingEvent>('audioprocess'); |
| 1165 |
| 1155 @DomName('ScriptProcessorNode.bufferSize') | 1166 @DomName('ScriptProcessorNode.bufferSize') |
| 1156 @DocsEditable() | 1167 @DocsEditable() |
| 1157 int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Gett
er_(this); | 1168 int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Gett
er_(this); |
| 1158 | 1169 |
| 1159 @DomName('ScriptProcessorNode.setEventListener') | 1170 @DomName('ScriptProcessorNode.setEventListener') |
| 1160 @DocsEditable() | 1171 @DocsEditable() |
| 1161 @Experimental() // untriaged | 1172 @Experimental() // untriaged |
| 1162 void setEventListener(EventListener eventListener) => _blink.BlinkScriptProces
sorNode.instance.setEventListener_Callback_1_(this, eventListener); | 1173 void setEventListener(EventListener eventListener) => _blink.BlinkScriptProces
sorNode.instance.setEventListener_Callback_1_(this, eventListener); |
| 1163 | 1174 |
| 1175 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. |
| 1176 /** |
| 1177 * Get a Stream that fires events when AudioProcessingEvents occur. |
| 1178 * This particular stream is special in that it only allows one listener to a |
| 1179 * given stream. Converting the returned Stream [asBroadcast] will likely ruin |
| 1180 * the soft-real-time properties which which these events are fired and can |
| 1181 * be processed. |
| 1182 */ |
| 1183 @DomName('ScriptProcessorNode.onaudioprocess') |
| 1184 @DocsEditable() |
| 1185 @Experimental() // untriaged |
| 1186 Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget
(this); |
| 1187 |
| 1164 } | 1188 } |
| 1165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1166 // for details. All rights reserved. Use of this source code is governed by a | 1190 // for details. All rights reserved. Use of this source code is governed by a |
| 1167 // BSD-style license that can be found in the LICENSE file. | 1191 // BSD-style license that can be found in the LICENSE file. |
| 1168 | 1192 |
| 1169 // WARNING: Do not edit - generated code. | 1193 // WARNING: Do not edit - generated code. |
| 1170 | 1194 |
| 1171 | 1195 |
| 1172 @DocsEditable() | 1196 @DocsEditable() |
| 1173 @DomName('WaveShaperNode') | 1197 @DomName('WaveShaperNode') |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1187 | 1211 |
| 1188 @DomName('WaveShaperNode.oversample') | 1212 @DomName('WaveShaperNode.oversample') |
| 1189 @DocsEditable() | 1213 @DocsEditable() |
| 1190 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter
_(this); | 1214 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter
_(this); |
| 1191 | 1215 |
| 1192 @DomName('WaveShaperNode.oversample') | 1216 @DomName('WaveShaperNode.oversample') |
| 1193 @DocsEditable() | 1217 @DocsEditable() |
| 1194 void set oversample(String value) => _blink.BlinkWaveShaperNode.instance.overs
ample_Setter_(this, value); | 1218 void set oversample(String value) => _blink.BlinkWaveShaperNode.instance.overs
ample_Setter_(this, value); |
| 1195 | 1219 |
| 1196 } | 1220 } |
| OLD | NEW |