| 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:_collection-dev' hide deprecated; | 5 import 'dart:_collection-dev' 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 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 AudioContext get context native "AudioNode_context_Getter"; | 580 AudioContext get context native "AudioNode_context_Getter"; |
| 581 | 581 |
| 582 @DomName('AudioNode.numberOfInputs') | 582 @DomName('AudioNode.numberOfInputs') |
| 583 @DocsEditable() | 583 @DocsEditable() |
| 584 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; | 584 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; |
| 585 | 585 |
| 586 @DomName('AudioNode.numberOfOutputs') | 586 @DomName('AudioNode.numberOfOutputs') |
| 587 @DocsEditable() | 587 @DocsEditable() |
| 588 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; | 588 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; |
| 589 | 589 |
| 590 void $dom_connect(destination, int output, [int input]) { | 590 void _connect(destination, int output, [int input]) { |
| 591 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode || destination == null)) { | 591 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode || destination == null)) { |
| 592 _connect_1(destination, output, input); | 592 _connect_1(destination, output, input); |
| 593 return; | 593 return; |
| 594 } | 594 } |
| 595 if ((output is int || output == null) && (destination is AudioParam || desti
nation == null) && input == null) { | 595 if ((output is int || output == null) && (destination is AudioParam || desti
nation == null) && input == null) { |
| 596 _connect_2(destination, output); | 596 _connect_2(destination, output); |
| 597 return; | 597 return; |
| 598 } | 598 } |
| 599 throw new ArgumentError("Incorrect number or type of arguments"); | 599 throw new ArgumentError("Incorrect number or type of arguments"); |
| 600 } | 600 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 614 @DomName('AudioNode.dispatchEvent') | 614 @DomName('AudioNode.dispatchEvent') |
| 615 @DocsEditable() | 615 @DocsEditable() |
| 616 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; | 616 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; |
| 617 | 617 |
| 618 @DomName('AudioNode.removeEventListener') | 618 @DomName('AudioNode.removeEventListener') |
| 619 @DocsEditable() | 619 @DocsEditable() |
| 620 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "AudioNode_removeEventListener_Callback"; | 620 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "AudioNode_removeEventListener_Callback"; |
| 621 | 621 |
| 622 @DomName('AudioNode.connect') | 622 @DomName('AudioNode.connect') |
| 623 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => | 623 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => |
| 624 $dom_connect(destination, output, input); | 624 _connect(destination, output, input); |
| 625 | 625 |
| 626 @DomName('AudioNode.connect') | 626 @DomName('AudioNode.connect') |
| 627 void connectParam(AudioParam destination, [int output = 0]) => | 627 void connectParam(AudioParam destination, [int output = 0]) => |
| 628 $dom_connect(destination, output); | 628 _connect(destination, output); |
| 629 } | 629 } |
| 630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 631 // for details. All rights reserved. Use of this source code is governed by a | 631 // for details. All rights reserved. Use of this source code is governed by a |
| 632 // BSD-style license that can be found in the LICENSE file. | 632 // BSD-style license that can be found in the LICENSE file. |
| 633 | 633 |
| 634 // WARNING: Do not edit - generated code. | 634 // WARNING: Do not edit - generated code. |
| 635 | 635 |
| 636 | 636 |
| 637 @DocsEditable() | 637 @DocsEditable() |
| 638 @DomName('AudioParam') | 638 @DomName('AudioParam') |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 | 1392 |
| 1393 @DomName('WaveShaperNode.oversample') | 1393 @DomName('WaveShaperNode.oversample') |
| 1394 @DocsEditable() | 1394 @DocsEditable() |
| 1395 String get oversample native "WaveShaperNode_oversample_Getter"; | 1395 String get oversample native "WaveShaperNode_oversample_Getter"; |
| 1396 | 1396 |
| 1397 @DomName('WaveShaperNode.oversample') | 1397 @DomName('WaveShaperNode.oversample') |
| 1398 @DocsEditable() | 1398 @DocsEditable() |
| 1399 void set oversample(String value) native "WaveShaperNode_oversample_Setter"; | 1399 void set oversample(String value) native "WaveShaperNode_oversample_Setter"; |
| 1400 | 1400 |
| 1401 } | 1401 } |
| OLD | NEW |