| 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 0178795399cef1026548dc473e1ee4bfec1e07f7..40547d5cde0bc3b022c9ac61c7920b8846dd149f 100644
|
| --- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
|
| +++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
|
| @@ -1152,6 +1152,17 @@ class ScriptProcessorNode extends AudioNode {
|
| // To suppress missing implicit constructor warnings.
|
| factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + /**
|
| + * Static factory designed to expose `audioprocess` events to event
|
| + * handlers that are not necessarily instances of [ScriptProcessorNode].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| + @DomName('ScriptProcessorNode.audioprocessEvent')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = const EventStreamProvider<AudioProcessingEvent>('audioprocess');
|
| +
|
| @DomName('ScriptProcessorNode.bufferSize')
|
| @DocsEditable()
|
| int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Getter_(this);
|
| @@ -1161,6 +1172,19 @@ class ScriptProcessorNode extends AudioNode {
|
| @Experimental() // untriaged
|
| void setEventListener(EventListener eventListener) => _blink.BlinkScriptProcessorNode.instance.setEventListener_Callback_1_(this, eventListener);
|
|
|
| + /// Stream of `audioprocess` events handled by this [ScriptProcessorNode].
|
| +/**
|
| + * 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
|
|
|