summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl')
-rw-r--r--chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl24
1 files changed, 5 insertions, 19 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl b/chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl
index ab58774ead6..135f1ce1be2 100644
--- a/chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl
+++ b/chromium/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.idl
@@ -24,33 +24,19 @@
// A cached (non-streamed), memory-resident audio source
[
- Conditional=WEB_AUDIO
+ Conditional=WEB_AUDIO,
+ TypeChecking=Interface|Nullable,
] interface AudioBufferSourceNode : AudioSourceNode {
- [StrictTypeChecking, RaisesException=Setter] attribute AudioBuffer buffer;
+ [RaisesException=Setter] attribute AudioBuffer buffer;
- const unsigned short UNSCHEDULED_STATE = 0;
- const unsigned short SCHEDULED_STATE = 1;
- const unsigned short PLAYING_STATE = 2;
- const unsigned short FINISHED_STATE = 3;
-
- readonly attribute unsigned short playbackState;
-
- readonly attribute AudioParam gain;
readonly attribute AudioParam playbackRate;
- attribute boolean loop; // This is the proper attribute name from the specification.
-
+ attribute boolean loop;
attribute double loopStart;
attribute double loopEnd;
- [RaisesException, MeasureAs=WebAudioStart] void start(optional double when, optional double grainOffset, optional double grainDuration);
+ [RaisesException] void start(optional double when, optional double grainOffset, optional double grainDuration);
[RaisesException] void stop(optional double when);
- [DeprecateAs=WebAudioLooping, ImplementedAs=loop] attribute boolean looping; // This is an alias for the .loop attribute for backwards compatibility.
-
- [RaisesException, ImplementedAs=start, MeasureAs=LegacyWebAudio] void noteOn(double when);
- [RaisesException, MeasureAs=LegacyWebAudio] void noteGrainOn(double when, double grainOffset, double grainDuration);
- [RaisesException, ImplementedAs=stop] void noteOff(double when);
-
attribute EventHandler onended;
};