| OLD | NEW |
| 1 library web_audio; | 1 library web_audio; |
| 2 | 2 |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 // DO NOT EDIT | 4 // DO NOT EDIT |
| 5 // Auto-generated dart:audio library. | 5 // Auto-generated dart:audio library. |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { | 261 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { |
| 262 | 262 |
| 263 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true | 263 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true |
| 264 final int numberOfChannels; | 264 final int numberOfChannels; |
| 265 } | 265 } |
| 266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 267 // for details. All rights reserved. Use of this source code is governed by a | 267 // for details. All rights reserved. Use of this source code is governed by a |
| 268 // BSD-style license that can be found in the LICENSE file. | 268 // BSD-style license that can be found in the LICENSE file. |
| 269 | 269 |
| 270 | 270 |
| 271 /// @domName HTMLAudioElement; @docsEditable true |
| 272 class AudioElement extends MediaElement native "*HTMLAudioElement" { |
| 273 |
| 274 factory AudioElement([String src]) { |
| 275 if (!?src) { |
| 276 return _AudioElementFactoryProvider.createAudioElement(); |
| 277 } |
| 278 return _AudioElementFactoryProvider.createAudioElement(src); |
| 279 } |
| 280 } |
| 281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 282 // for details. All rights reserved. Use of this source code is governed by a |
| 283 // BSD-style license that can be found in the LICENSE file. |
| 284 |
| 285 |
| 271 /// @domName AudioGain; @docsEditable true | 286 /// @domName AudioGain; @docsEditable true |
| 272 class AudioGain extends AudioParam native "*AudioGain" { | 287 class AudioGain extends AudioParam native "*AudioGain" { |
| 273 } | 288 } |
| 274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 275 // for details. All rights reserved. Use of this source code is governed by a | 290 // for details. All rights reserved. Use of this source code is governed by a |
| 276 // BSD-style license that can be found in the LICENSE file. | 291 // BSD-style license that can be found in the LICENSE file. |
| 277 | 292 |
| 278 | 293 |
| 279 /// @domName AudioListener; @docsEditable true | 294 /// @domName AudioListener; @docsEditable true |
| 280 class AudioListener native "*AudioListener" { | 295 class AudioListener native "*AudioListener" { |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { | 684 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { |
| 670 | 685 |
| 671 /// @domName WaveShaperNode.curve; @docsEditable true | 686 /// @domName WaveShaperNode.curve; @docsEditable true |
| 672 Float32Array curve; | 687 Float32Array curve; |
| 673 } | 688 } |
| 674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 675 // for details. All rights reserved. Use of this source code is governed by a | 690 // for details. All rights reserved. Use of this source code is governed by a |
| 676 // BSD-style license that can be found in the LICENSE file. | 691 // BSD-style license that can be found in the LICENSE file. |
| 677 | 692 |
| 678 | 693 |
| 679 /// @domName WaveTable; @docsEditable true | 694 class _AudioElementFactoryProvider { |
| 680 class WaveTable native "*WaveTable" { | 695 static AudioElement createAudioElement([String src = null]) { |
| 696 if (src == null) return JS('AudioElement', 'new Audio()'); |
| 697 return JS('AudioElement', 'new Audio(#)', src); |
| 698 } |
| 681 } | 699 } |
| OLD | NEW |