| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, 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: |
| 6 // This file contains documentation that is merged into the real source. |
| 7 // Do not make code changes here. |
| 8 |
| 9 /// @domName Oscillator |
| 10 interface Oscillator extends AudioSourceNode { |
| 11 |
| 12 static final int CUSTOM = 4; |
| 13 |
| 14 static final int FINISHED_STATE = 3; |
| 15 |
| 16 static final int PLAYING_STATE = 2; |
| 17 |
| 18 static final int SAWTOOTH = 2; |
| 19 |
| 20 static final int SCHEDULED_STATE = 1; |
| 21 |
| 22 static final int SINE = 0; |
| 23 |
| 24 static final int SQUARE = 1; |
| 25 |
| 26 static final int TRIANGLE = 3; |
| 27 |
| 28 static final int UNSCHEDULED_STATE = 0; |
| 29 |
| 30 /** @domName Oscillator.detune */ |
| 31 final AudioParam detune; |
| 32 |
| 33 /** @domName Oscillator.frequency */ |
| 34 final AudioParam frequency; |
| 35 |
| 36 /** @domName Oscillator.playbackState */ |
| 37 final int playbackState; |
| 38 |
| 39 /** @domName Oscillator.type */ |
| 40 int type; |
| 41 |
| 42 /** @domName Oscillator.noteOff */ |
| 43 void noteOff(num when); |
| 44 |
| 45 /** @domName Oscillator.noteOn */ |
| 46 void noteOn(num when); |
| 47 |
| 48 /** @domName Oscillator.setWaveTable */ |
| 49 void setWaveTable(WaveTable waveTable); |
| 50 } |
| OLD | NEW |