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

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

Issue 2471353004: Implement AudioScheduledSourceNode (Closed)
Patch Set: Rebaseline test Created 3 years, 11 months 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
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 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/ConstantSourceNode.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698