| OLD | NEW |
| 1 /** | 1 /** |
| 2 * High-fidelity audio programming in the browser. | 2 * High-fidelity audio programming in the browser. |
| 3 */ | 3 */ |
| 4 library dart.dom.web_audio; | 4 library dart.dom.web_audio; |
| 5 | 5 |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:_collection-dev' hide deprecated; | 8 import 'dart:_collection-dev' hide deprecated; |
| 9 import 'dart:html'; | 9 import 'dart:html'; |
| 10 import 'dart:html_common'; | 10 import 'dart:html_common'; |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 @Experimental() | 882 @Experimental() |
| 883 class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator"
{ | 883 class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator"
{ |
| 884 // To suppress missing implicit constructor warnings. | 884 // To suppress missing implicit constructor warnings. |
| 885 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } | 885 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } |
| 886 | 886 |
| 887 @DomName('OscillatorNode.endedEvent') | 887 @DomName('OscillatorNode.endedEvent') |
| 888 @DocsEditable() | 888 @DocsEditable() |
| 889 @Experimental() // untriaged | 889 @Experimental() // untriaged |
| 890 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); | 890 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 891 | 891 |
| 892 @DomName('OscillatorNode.CUSTOM') |
| 893 @DocsEditable() |
| 894 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 895 @deprecated // deprecated |
| 896 static const int CUSTOM = 4; |
| 897 |
| 892 @DomName('OscillatorNode.FINISHED_STATE') | 898 @DomName('OscillatorNode.FINISHED_STATE') |
| 893 @DocsEditable() | 899 @DocsEditable() |
| 894 static const int FINISHED_STATE = 3; | 900 static const int FINISHED_STATE = 3; |
| 895 | 901 |
| 896 @DomName('OscillatorNode.PLAYING_STATE') | 902 @DomName('OscillatorNode.PLAYING_STATE') |
| 897 @DocsEditable() | 903 @DocsEditable() |
| 898 static const int PLAYING_STATE = 2; | 904 static const int PLAYING_STATE = 2; |
| 899 | 905 |
| 906 @DomName('OscillatorNode.SAWTOOTH') |
| 907 @DocsEditable() |
| 908 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 909 @deprecated // deprecated |
| 910 static const int SAWTOOTH = 2; |
| 911 |
| 900 @DomName('OscillatorNode.SCHEDULED_STATE') | 912 @DomName('OscillatorNode.SCHEDULED_STATE') |
| 901 @DocsEditable() | 913 @DocsEditable() |
| 902 static const int SCHEDULED_STATE = 1; | 914 static const int SCHEDULED_STATE = 1; |
| 903 | 915 |
| 916 @DomName('OscillatorNode.SINE') |
| 917 @DocsEditable() |
| 918 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 919 @deprecated // deprecated |
| 920 static const int SINE = 0; |
| 921 |
| 922 @DomName('OscillatorNode.SQUARE') |
| 923 @DocsEditable() |
| 924 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 925 @deprecated // deprecated |
| 926 static const int SQUARE = 1; |
| 927 |
| 928 @DomName('OscillatorNode.TRIANGLE') |
| 929 @DocsEditable() |
| 930 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 931 @deprecated // deprecated |
| 932 static const int TRIANGLE = 3; |
| 933 |
| 904 @DomName('OscillatorNode.UNSCHEDULED_STATE') | 934 @DomName('OscillatorNode.UNSCHEDULED_STATE') |
| 905 @DocsEditable() | 935 @DocsEditable() |
| 906 static const int UNSCHEDULED_STATE = 0; | 936 static const int UNSCHEDULED_STATE = 0; |
| 907 | 937 |
| 908 @DomName('OscillatorNode.detune') | 938 @DomName('OscillatorNode.detune') |
| 909 @DocsEditable() | 939 @DocsEditable() |
| 910 final AudioParam detune; | 940 final AudioParam detune; |
| 911 | 941 |
| 912 @DomName('OscillatorNode.frequency') | 942 @DomName('OscillatorNode.frequency') |
| 913 @DocsEditable() | 943 @DocsEditable() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 | 983 |
| 954 | 984 |
| 955 @DocsEditable() | 985 @DocsEditable() |
| 956 @DomName('PannerNode') | 986 @DomName('PannerNode') |
| 957 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | 987 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
| 958 @Experimental() | 988 @Experimental() |
| 959 class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" { | 989 class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" { |
| 960 // To suppress missing implicit constructor warnings. | 990 // To suppress missing implicit constructor warnings. |
| 961 factory PannerNode._() { throw new UnsupportedError("Not supported"); } | 991 factory PannerNode._() { throw new UnsupportedError("Not supported"); } |
| 962 | 992 |
| 993 @DomName('PannerNode.EQUALPOWER') |
| 994 @DocsEditable() |
| 995 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 996 @deprecated // deprecated |
| 997 static const int EQUALPOWER = 0; |
| 998 |
| 999 @DomName('PannerNode.EXPONENTIAL_DISTANCE') |
| 1000 @DocsEditable() |
| 1001 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1002 @deprecated // deprecated |
| 1003 static const int EXPONENTIAL_DISTANCE = 2; |
| 1004 |
| 1005 @DomName('PannerNode.HRTF') |
| 1006 @DocsEditable() |
| 1007 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1008 @deprecated // deprecated |
| 1009 static const int HRTF = 1; |
| 1010 |
| 1011 @DomName('PannerNode.INVERSE_DISTANCE') |
| 1012 @DocsEditable() |
| 1013 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1014 @deprecated // deprecated |
| 1015 static const int INVERSE_DISTANCE = 1; |
| 1016 |
| 1017 @DomName('PannerNode.LINEAR_DISTANCE') |
| 1018 @DocsEditable() |
| 1019 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1020 @deprecated // deprecated |
| 1021 static const int LINEAR_DISTANCE = 0; |
| 1022 |
| 1023 @DomName('PannerNode.SOUNDFIELD') |
| 1024 @DocsEditable() |
| 1025 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1026 @deprecated // deprecated |
| 1027 static const int SOUNDFIELD = 2; |
| 1028 |
| 963 @DomName('PannerNode.coneInnerAngle') | 1029 @DomName('PannerNode.coneInnerAngle') |
| 964 @DocsEditable() | 1030 @DocsEditable() |
| 965 num coneInnerAngle; | 1031 num coneInnerAngle; |
| 966 | 1032 |
| 967 @DomName('PannerNode.coneOuterAngle') | 1033 @DomName('PannerNode.coneOuterAngle') |
| 968 @DocsEditable() | 1034 @DocsEditable() |
| 969 num coneOuterAngle; | 1035 num coneOuterAngle; |
| 970 | 1036 |
| 971 @DomName('PannerNode.coneOuterGain') | 1037 @DomName('PannerNode.coneOuterGain') |
| 972 @DocsEditable() | 1038 @DocsEditable() |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | 1130 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
| 1065 | 1131 |
| 1066 @DomName('WaveShaperNode.curve') | 1132 @DomName('WaveShaperNode.curve') |
| 1067 @DocsEditable() | 1133 @DocsEditable() |
| 1068 Float32List curve; | 1134 Float32List curve; |
| 1069 | 1135 |
| 1070 @DomName('WaveShaperNode.oversample') | 1136 @DomName('WaveShaperNode.oversample') |
| 1071 @DocsEditable() | 1137 @DocsEditable() |
| 1072 String oversample; | 1138 String oversample; |
| 1073 } | 1139 } |
| OLD | NEW |