| 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:typed_data'; | 8 import 'dart:typed_data'; |
| 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; |
| 10 import 'dart:_foreign_helper' show JS; | 10 import 'dart:_foreign_helper' show JS; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 | 68 |
| 69 @DocsEditable() | 69 @DocsEditable() |
| 70 @DomName('AudioBuffer') | 70 @DomName('AudioBuffer') |
| 71 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 71 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 72 @Experimental() | 72 @Experimental() |
| 73 class AudioBuffer extends Interceptor native "AudioBuffer" { | 73 class AudioBuffer extends Interceptor native "AudioBuffer" { |
| 74 | 74 |
| 75 @DomName('AudioBuffer.duration') | 75 @DomName('AudioBuffer.duration') |
| 76 @DocsEditable() | 76 @DocsEditable() |
| 77 final num duration; | 77 final double duration; |
| 78 | 78 |
| 79 @DomName('AudioBuffer.gain') | 79 @DomName('AudioBuffer.gain') |
| 80 @DocsEditable() | 80 @DocsEditable() |
| 81 num gain; | 81 num gain; |
| 82 | 82 |
| 83 @DomName('AudioBuffer.length') | 83 @DomName('AudioBuffer.length') |
| 84 @DocsEditable() | 84 @DocsEditable() |
| 85 final int length; | 85 final int length; |
| 86 | 86 |
| 87 @DomName('AudioBuffer.numberOfChannels') | 87 @DomName('AudioBuffer.numberOfChannels') |
| 88 @DocsEditable() | 88 @DocsEditable() |
| 89 final int numberOfChannels; | 89 final int numberOfChannels; |
| 90 | 90 |
| 91 @DomName('AudioBuffer.sampleRate') | 91 @DomName('AudioBuffer.sampleRate') |
| 92 @DocsEditable() | 92 @DocsEditable() |
| 93 final num sampleRate; | 93 final double sampleRate; |
| 94 | 94 |
| 95 @DomName('AudioBuffer.getChannelData') | 95 @DomName('AudioBuffer.getChannelData') |
| 96 @DocsEditable() | 96 @DocsEditable() |
| 97 Float32List getChannelData(int channelIndex) native; | 97 Float32List getChannelData(int channelIndex) native; |
| 98 } | 98 } |
| 99 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 99 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 100 // for details. All rights reserved. Use of this source code is governed by a | 100 // for details. All rights reserved. Use of this source code is governed by a |
| 101 // BSD-style license that can be found in the LICENSE file. | 101 // BSD-style license that can be found in the LICENSE file. |
| 102 | 102 |
| 103 // WARNING: Do not edit - generated code. | 103 // WARNING: Do not edit - generated code. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 /// Checks if this type is supported on the current platform. | 225 /// Checks if this type is supported on the current platform. |
| 226 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); | 226 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); |
| 227 | 227 |
| 228 @DomName('AudioContext.activeSourceCount') | 228 @DomName('AudioContext.activeSourceCount') |
| 229 @DocsEditable() | 229 @DocsEditable() |
| 230 final int activeSourceCount; | 230 final int activeSourceCount; |
| 231 | 231 |
| 232 @DomName('AudioContext.currentTime') | 232 @DomName('AudioContext.currentTime') |
| 233 @DocsEditable() | 233 @DocsEditable() |
| 234 final num currentTime; | 234 final double currentTime; |
| 235 | 235 |
| 236 @DomName('AudioContext.destination') | 236 @DomName('AudioContext.destination') |
| 237 @DocsEditable() | 237 @DocsEditable() |
| 238 final AudioDestinationNode destination; | 238 final AudioDestinationNode destination; |
| 239 | 239 |
| 240 @DomName('AudioContext.listener') | 240 @DomName('AudioContext.listener') |
| 241 @DocsEditable() | 241 @DocsEditable() |
| 242 final AudioListener listener; | 242 final AudioListener listener; |
| 243 | 243 |
| 244 @DomName('AudioContext.sampleRate') | 244 @DomName('AudioContext.sampleRate') |
| 245 @DocsEditable() | 245 @DocsEditable() |
| 246 final num sampleRate; | 246 final double sampleRate; |
| 247 | 247 |
| 248 @DomName('AudioContext.createAnalyser') | 248 @DomName('AudioContext.createAnalyser') |
| 249 @DocsEditable() | 249 @DocsEditable() |
| 250 AnalyserNode createAnalyser() native; | 250 AnalyserNode createAnalyser() native; |
| 251 | 251 |
| 252 @DomName('AudioContext.createBiquadFilter') | 252 @DomName('AudioContext.createBiquadFilter') |
| 253 @DocsEditable() | 253 @DocsEditable() |
| 254 BiquadFilterNode createBiquadFilter() native; | 254 BiquadFilterNode createBiquadFilter() native; |
| 255 | 255 |
| 256 @DomName('AudioContext.createBuffer') | 256 @DomName('AudioContext.createBuffer') |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 | 498 |
| 499 | 499 |
| 500 @DocsEditable() | 500 @DocsEditable() |
| 501 @DomName('AudioParam') | 501 @DomName('AudioParam') |
| 502 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | 502 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
| 503 @Experimental() | 503 @Experimental() |
| 504 class AudioParam extends Interceptor native "AudioParam" { | 504 class AudioParam extends Interceptor native "AudioParam" { |
| 505 | 505 |
| 506 @DomName('AudioParam.defaultValue') | 506 @DomName('AudioParam.defaultValue') |
| 507 @DocsEditable() | 507 @DocsEditable() |
| 508 final num defaultValue; | 508 final double defaultValue; |
| 509 | 509 |
| 510 @DomName('AudioParam.maxValue') | 510 @DomName('AudioParam.maxValue') |
| 511 @DocsEditable() | 511 @DocsEditable() |
| 512 final num maxValue; | 512 final double maxValue; |
| 513 | 513 |
| 514 @DomName('AudioParam.minValue') | 514 @DomName('AudioParam.minValue') |
| 515 @DocsEditable() | 515 @DocsEditable() |
| 516 final num minValue; | 516 final double minValue; |
| 517 | 517 |
| 518 @DomName('AudioParam.name') | 518 @DomName('AudioParam.name') |
| 519 @DocsEditable() | 519 @DocsEditable() |
| 520 final String name; | 520 final String name; |
| 521 | 521 |
| 522 @DomName('AudioParam.units') | 522 @DomName('AudioParam.units') |
| 523 @DocsEditable() | 523 @DocsEditable() |
| 524 final int units; | 524 final int units; |
| 525 | 525 |
| 526 @DomName('AudioParam.value') | 526 @DomName('AudioParam.value') |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 // for details. All rights reserved. Use of this source code is governed by a | 1127 // for details. All rights reserved. Use of this source code is governed by a |
| 1128 // BSD-style license that can be found in the LICENSE file. | 1128 // BSD-style license that can be found in the LICENSE file. |
| 1129 | 1129 |
| 1130 | 1130 |
| 1131 @DocsEditable() | 1131 @DocsEditable() |
| 1132 @DomName('WaveTable') | 1132 @DomName('WaveTable') |
| 1133 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1133 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1134 @Experimental() | 1134 @Experimental() |
| 1135 class WaveTable extends Interceptor native "WaveTable" { | 1135 class WaveTable extends Interceptor native "WaveTable" { |
| 1136 } | 1136 } |
| OLD | NEW |