| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 class _AudioBufferWrappingImplementation extends DOMWrapperBase implements Audio
Buffer { |
| 8 _AudioBufferWrappingImplementation() : super() {} |
| 9 |
| 10 static create__AudioBufferWrappingImplementation() native { |
| 11 return new _AudioBufferWrappingImplementation(); |
| 12 } |
| 13 |
| 14 num get duration() { return _get_duration(this); } |
| 15 static num _get_duration(var _this) native; |
| 16 |
| 17 num get gain() { return _get_gain(this); } |
| 18 static num _get_gain(var _this) native; |
| 19 |
| 20 void set gain(num value) { _set_gain(this, value); } |
| 21 static void _set_gain(var _this, num value) native; |
| 22 |
| 23 int get length() { return _get_length(this); } |
| 24 static int _get_length(var _this) native; |
| 25 |
| 26 int get numberOfChannels() { return _get_numberOfChannels(this); } |
| 27 static int _get_numberOfChannels(var _this) native; |
| 28 |
| 29 num get sampleRate() { return _get_sampleRate(this); } |
| 30 static num _get_sampleRate(var _this) native; |
| 31 |
| 32 Float32Array getChannelData(int channelIndex) { |
| 33 return _getChannelData(this, channelIndex); |
| 34 } |
| 35 static Float32Array _getChannelData(receiver, channelIndex) native; |
| 36 |
| 37 String get typeName() { return "AudioBuffer"; } |
| 38 } |
| OLD | NEW |