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 AudioBufferSourceNodeWrappingImplementation extends AudioSourceNodeWrappin
gImplementation implements AudioBufferSourceNode { | |
8 AudioBufferSourceNodeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 AudioBuffer get buffer() { return LevelDom.wrapAudioBuffer(_ptr.buffer); } | |
11 | |
12 void set buffer(AudioBuffer value) { _ptr.buffer = LevelDom.unwrap(value); } | |
13 | |
14 AudioGain get gain() { return LevelDom.wrapAudioGain(_ptr.gain); } | |
15 | |
16 bool get loop() { return _ptr.loop; } | |
17 | |
18 void set loop(bool value) { _ptr.loop = value; } | |
19 | |
20 bool get looping() { return _ptr.looping; } | |
21 | |
22 void set looping(bool value) { _ptr.looping = value; } | |
23 | |
24 AudioParam get playbackRate() { return LevelDom.wrapAudioParam(_ptr.playbackRa
te); } | |
25 | |
26 void noteGrainOn(num when, num grainOffset, num grainDuration) { | |
27 _ptr.noteGrainOn(when, grainOffset, grainDuration); | |
28 return; | |
29 } | |
30 | |
31 void noteOff(num when) { | |
32 _ptr.noteOff(when); | |
33 return; | |
34 } | |
35 | |
36 void noteOn(num when) { | |
37 _ptr.noteOn(when); | |
38 return; | |
39 } | |
40 } | |
OLD | NEW |