summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl')
-rw-r--r--Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl22
1 files changed, 7 insertions, 15 deletions
diff --git a/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl b/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
index d792846ee..f42bfe959 100644
--- a/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
+++ b/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
@@ -27,7 +27,7 @@
Conditional=WEB_AUDIO,
JSGenerateToJSObject,
] interface AudioBufferSourceNode : AudioNode {
- [CustomSetter, SetterRaisesException] attribute AudioBuffer buffer;
+ attribute AudioBuffer? buffer;
const unsigned short UNSCHEDULED_STATE = 0;
const unsigned short SCHEDULED_STATE = 1;
@@ -39,21 +39,13 @@
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;
+ attribute unrestricted double loopStart;
+ attribute unrestricted double loopEnd;
- [RaisesException] void start(double when);
- [ImplementedAs=startGrain, RaisesException] void start(double when, double grainOffset);
- [ImplementedAs=startGrain, RaisesException] void start(double when, double grainOffset, double grainDuration);
- [RaisesException] void stop(double when);
+ [MayThrowException] void start(optional unrestricted double when = 0, optional unrestricted double grainOffset = 0, optional unrestricted double grainDuration);
+ [MayThrowException] void stop(optional unrestricted double when = 0);
- [Conditional=LEGACY_WEB_AUDIO] attribute boolean looping; // This is an alias for the .loop attribute for backwards compatibility.
-
- [Conditional=LEGACY_WEB_AUDIO, RaisesException] void noteOn(double when);
- [Conditional=LEGACY_WEB_AUDIO, RaisesException] void noteGrainOn(double when, double grainOffset, double grainDuration);
- [Conditional=LEGACY_WEB_AUDIO, RaisesException] void noteOff(double when);
-
- attribute EventListener onended;
+ attribute EventHandler onended;
};