| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 } | 223 } |
| 224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 225 // for details. All rights reserved. Use of this source code is governed by a | 225 // for details. All rights reserved. Use of this source code is governed by a |
| 226 // BSD-style license that can be found in the LICENSE file. | 226 // BSD-style license that can be found in the LICENSE file. |
| 227 | 227 |
| 228 | 228 |
| 229 @DomName('AudioContext') | 229 @DomName('AudioContext') |
| 230 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 230 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
| 231 @Experimental() | 231 @Experimental() |
| 232 class AudioContext extends EventTarget native "AudioContext" { | 232 class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
{ |
| 233 // To suppress missing implicit constructor warnings. | 233 // To suppress missing implicit constructor warnings. |
| 234 factory AudioContext._() { throw new UnsupportedError("Not supported"); } | 234 factory AudioContext._() { throw new UnsupportedError("Not supported"); } |
| 235 | 235 |
| 236 @DomName('AudioContext.completeEvent') | 236 @DomName('AudioContext.completeEvent') |
| 237 @DocsEditable() | 237 @DocsEditable() |
| 238 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 238 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 239 | 239 |
| 240 /// Checks if this type is supported on the current platform. | 240 /// Checks if this type is supported on the current platform. |
| 241 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); | 241 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); |
| 242 | 242 |
| (...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | 1130 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
| 1131 | 1131 |
| 1132 @DomName('WaveShaperNode.curve') | 1132 @DomName('WaveShaperNode.curve') |
| 1133 @DocsEditable() | 1133 @DocsEditable() |
| 1134 Float32List curve; | 1134 Float32List curve; |
| 1135 | 1135 |
| 1136 @DomName('WaveShaperNode.oversample') | 1136 @DomName('WaveShaperNode.oversample') |
| 1137 @DocsEditable() | 1137 @DocsEditable() |
| 1138 String oversample; | 1138 String oversample; |
| 1139 } | 1139 } |
| OLD | NEW |