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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp

Issue 2397793002: AudioBuffer numberOfChannels defaults to 1 (Closed)
Patch Set: Rebase Created 4 years, 2 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/AudioBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
index 1eab6e67412f7b93ee911bec2fa05fd7face72d0..fe8639de114c368b583aa512b1ef4d1a93c2bb5e 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
@@ -116,12 +116,6 @@ AudioBuffer* AudioBuffer::create(BaseAudioContext* context,
return nullptr;
}
- if (!options.hasLength()) {
- exceptionState.throwDOMException(NotFoundError,
- "AudioBufferOptions: length is required.");
- return nullptr;
- }
-
numberOfChannels = options.numberOfChannels();
numberOfFrames = options.length();

Powered by Google App Engine
This is Rietveld 408576698