Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl
index e7b2a8cf95dffe2d9d70e74bb03d91c79896cf26..5dd5e8583b97913ab088b6fcd1810d9c8496d68f 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl
@@ -5,9 +5,9 @@
// See https://webaudio.github.io/web-audio-api/#audiobuffersourceoptions
dictionary AudioBufferSourceOptions {
AudioBuffer? buffer;
- float detune;
- boolean loop;
- double loopEnd;
- double loopStart;
- float playbackRate;
+ float detune = 0;
+ boolean loop = false;
+ double loopEnd = 0;
+ double loopStart = 0;
+ float playbackRate = 1;
};

Powered by Google App Engine
This is Rietveld 408576698