| Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| index 83732db6597af7dfbee099895d5afbbc449e1928..30413ba07228e732b9c5dab68779bc9c62a7b780 100644
|
| --- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| +++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| @@ -1001,8 +1001,8 @@ class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" {
|
| */
|
| Stream<AudioProcessingEvent> get onAudioProcess {
|
| if (_eventStream == null) {
|
| - var controller = new StreamController();
|
| - var callback = (audioData) {
|
| + 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
|
|
|