| Index: sdk/lib/web_audio/dartium/web_audio_dartium.dart
|
| diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
|
| index f925e65a1d490d4e4d9655cba42395974425e63b..b6c10038cfdcf31aa569e49e2243e35fac240dff 100644
|
| --- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
|
| +++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
|
| @@ -1317,46 +1317,26 @@ class PannerNode extends AudioNode {
|
| class PeriodicWave extends NativeFieldWrapperClass1 {
|
|
|
| }
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +// WARNING: Do not edit - generated code.
|
| +
|
|
|
| +@DocsEditable()
|
| @DomName('ScriptProcessorNode')
|
| // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptProcessorNode
|
| @Experimental()
|
| class ScriptProcessorNode extends AudioNode {
|
| - Stream<AudioProcessingEvent> _eventStream;
|
| -
|
| - /**
|
| - * Get a Stream that fires events when AudioProcessingEvents occur.
|
| - * This particular stream is special in that it only allows one listener to a
|
| - * given stream. Converting the returned Stream [asBroadcast] will likely ruin
|
| - * the soft-real-time properties which which these events are fired and can
|
| - * be processed.
|
| - */
|
| - Stream<AudioProcessingEvent> get onAudioProcess {
|
| - if (_eventStream == null) {
|
| - var controller = new StreamController(sync: true);
|
| - var callback = (audioData) {
|
| - if (controller.hasListener) {
|
| - // This stream is a strange combination of broadcast and single
|
| - // subscriber streams. We only allow one listener, but if there is
|
| - // no listener, we don't queue up events, we just drop them on the
|
| - // floor.
|
| - controller.add(audioData);
|
| - }
|
| - };
|
| - _setEventListener(callback);
|
| - _eventStream = controller.stream;
|
| - }
|
| - return _eventStream;
|
| - }
|
| -
|
| -
|
| // To suppress missing implicit constructor warnings.
|
| factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + @DomName('ScriptProcessorNode.audioprocessEvent')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = const EventStreamProvider<AudioProcessingEvent>('audioprocess');
|
| +
|
| @DomName('ScriptProcessorNode.bufferSize')
|
| @DocsEditable()
|
| int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
|
| @@ -1366,6 +1346,18 @@ class ScriptProcessorNode extends AudioNode {
|
| @Experimental() // non-standard
|
| void _setEventListener(EventListener eventListener) native "ScriptProcessorNode__setEventListener_Callback";
|
|
|
| + /**
|
| + * Get a Stream that fires events when AudioProcessingEvents occur.
|
| + * This particular stream is special in that it only allows one listener to a
|
| + * given stream. Converting the returned Stream [asBroadcast] will likely ruin
|
| + * the soft-real-time properties which which these events are fired and can
|
| + * be processed.
|
| + */
|
| + @DomName('ScriptProcessorNode.onaudioprocess')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget(this);
|
| +
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
|
|