Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OscillatorNode.idl

Issue 2471353004: Implement AudioScheduledSourceNode (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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, 39 ActiveScriptWrappable,
40 DependentLifetime
hongchan 2016/12/01 00:11:22 You can remove ActiveScriptWrappable, DependentLif
Raymond Toy 2016/12/01 18:48:32 Done.
40 ] 41 ]
41 interface OscillatorNode : AudioSourceNode { 42 interface OscillatorNode : AudioScheduledSourceNode {
42 43
43 [RaisesException=Setter] attribute OscillatorType type; 44 [RaisesException=Setter] attribute OscillatorType type;
44 45
45 readonly attribute AudioParam frequency; // in Hertz 46 readonly attribute AudioParam frequency; // in Hertz
46 readonly attribute AudioParam detune; // in Cents 47 readonly attribute AudioParam detune; // in Cents
47 48
48 [RaisesException] void start(optional double when);
49 [RaisesException] void stop(optional double when);
50
51 void setPeriodicWave(PeriodicWave periodicWave); 49 void setPeriodicWave(PeriodicWave periodicWave);
52
53 attribute EventHandler onended;
54 }; 50 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698