summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
diff options
context:
space:
mode:
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;
};