OLD | NEW |
1 | 1 |
2 class _AudioBufferJs extends _DOMTypeJs implements AudioBuffer native "*AudioBuf
fer" { | 2 class _AudioBufferJs extends _DOMTypeJs implements AudioBuffer native "*AudioBuf
fer" { |
3 | 3 |
4 num get duration() native "return this.duration;"; | 4 final num duration; |
5 | 5 |
6 num get gain() native "return this.gain;"; | 6 num gain; |
7 | 7 |
8 void set gain(num value) native "this.gain = value;"; | 8 final int length; |
9 | 9 |
10 int get length() native "return this.length;"; | 10 final int numberOfChannels; |
11 | 11 |
12 int get numberOfChannels() native "return this.numberOfChannels;"; | 12 final num sampleRate; |
13 | |
14 num get sampleRate() native "return this.sampleRate;"; | |
15 | 13 |
16 _Float32ArrayJs getChannelData(int channelIndex) native; | 14 _Float32ArrayJs getChannelData(int channelIndex) native; |
17 } | 15 } |
OLD | NEW |