aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r--components/script/dom/webidls/AudioBufferSourceNode.webidl8
-rw-r--r--components/script/dom/webidls/AudioScheduledSourceNode.webidl4
-rw-r--r--components/script/dom/webidls/BaseAudioContext.webidl8
3 files changed, 10 insertions, 10 deletions
diff --git a/components/script/dom/webidls/AudioBufferSourceNode.webidl b/components/script/dom/webidls/AudioBufferSourceNode.webidl
index 45358fbaad8..a91a6afc393 100644
--- a/components/script/dom/webidls/AudioBufferSourceNode.webidl
+++ b/components/script/dom/webidls/AudioBufferSourceNode.webidl
@@ -18,13 +18,13 @@ dictionary AudioBufferSourceOptions {
[Exposed=Window,
Constructor (BaseAudioContext context, optional AudioBufferSourceOptions options)]
interface AudioBufferSourceNode : AudioScheduledSourceNode {
- // attribute AudioBuffer? buffer;
+ [Throws] attribute AudioBuffer? buffer;
readonly attribute AudioParam playbackRate;
readonly attribute AudioParam detune;
attribute boolean loop;
attribute double loopStart;
attribute double loopEnd;
- void start(optional double when = 0,
- optional double offset,
- optional double duration);
+ [Throws] void start(optional double when = 0,
+ optional double offset,
+ optional double duration);
};
diff --git a/components/script/dom/webidls/AudioScheduledSourceNode.webidl b/components/script/dom/webidls/AudioScheduledSourceNode.webidl
index 8e058b129cc..a1ca3fc8a8c 100644
--- a/components/script/dom/webidls/AudioScheduledSourceNode.webidl
+++ b/components/script/dom/webidls/AudioScheduledSourceNode.webidl
@@ -9,6 +9,6 @@
[Exposed=Window]
interface AudioScheduledSourceNode : AudioNode {
attribute EventHandler onended;
- void start(optional double when = 0);
- void stop(optional double when = 0);
+ [Throws] void start(optional double when = 0);
+ [Throws] void stop(optional double when = 0);
};
diff --git a/components/script/dom/webidls/BaseAudioContext.webidl b/components/script/dom/webidls/BaseAudioContext.webidl
index 92564b29a5f..9147ca5ed58 100644
--- a/components/script/dom/webidls/BaseAudioContext.webidl
+++ b/components/script/dom/webidls/BaseAudioContext.webidl
@@ -24,13 +24,13 @@ interface BaseAudioContext : EventTarget {
readonly attribute AudioContextState state;
Promise<void> resume();
attribute EventHandler onstatechange;
- AudioBuffer createBuffer(unsigned long numberOfChannels,
- unsigned long length,
- float sampleRate);
+ [Throws] AudioBuffer createBuffer(unsigned long numberOfChannels,
+ unsigned long length,
+ float sampleRate);
// Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData,
// optional DecodeSuccessCallback successCallback,
// optional DecodeErrorCallback errorCallback);
- // AudioBufferSourceNode createBufferSource();
+ AudioBufferSourceNode createBufferSource();
// ConstantSourceNode createConstantSource();
// ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0,
// optional unsigned long numberOfInputChannels = 2,