From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../Modules/webaudio/AudioBufferSourceNode.idl | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl') 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; }; -- cgit v1.2.1