OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 18 matching lines...) Expand all Loading... |
29 "square", | 29 "square", |
30 "sawtooth", | 30 "sawtooth", |
31 "triangle", | 31 "triangle", |
32 "custom" | 32 "custom" |
33 }; | 33 }; |
34 | 34 |
35 // OscillatorNode is an audio generator of periodic waveforms. | 35 // OscillatorNode is an audio generator of periodic waveforms. |
36 [ | 36 [ |
37 Constructor(BaseAudioContext context, optional OscillatorOptions options), | 37 Constructor(BaseAudioContext context, optional OscillatorOptions options), |
38 RaisesException=Constructor, | 38 RaisesException=Constructor, |
39 ActiveScriptWrappable, | |
40 Measure | 39 Measure |
41 ] | 40 ] |
42 interface OscillatorNode : AudioSourceNode { | 41 interface OscillatorNode : AudioScheduledSourceNode { |
43 | 42 |
44 [RaisesException=Setter] attribute OscillatorType type; | 43 [RaisesException=Setter] attribute OscillatorType type; |
45 | 44 |
46 readonly attribute AudioParam frequency; // in Hertz | 45 readonly attribute AudioParam frequency; // in Hertz |
47 readonly attribute AudioParam detune; // in Cents | 46 readonly attribute AudioParam detune; // in Cents |
48 | 47 |
49 [RaisesException] void start(optional double when); | |
50 [RaisesException] void stop(optional double when); | |
51 | |
52 void setPeriodicWave(PeriodicWave periodicWave); | 48 void setPeriodicWave(PeriodicWave periodicWave); |
53 | |
54 attribute EventHandler onended; | |
55 }; | 49 }; |
OLD | NEW |