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

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

Issue 1951903003: Assert destination handler exists in AudioParam (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioParam.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
index 247e8a989125f90eb8f5a89c9ad28b3ae87eb383..bfebd3f7259479627b6efdee4d5314d17a2ea185 100644
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp
@@ -104,6 +104,7 @@ OfflineAudioContext::OfflineAudioContext(Document* document, unsigned numberOfCh
// Throw an exception if the render target is not ready.
if (m_renderTarget) {
m_destinationNode = OfflineAudioDestinationNode::create(this, m_renderTarget.get());
+ initialize();
} else {
exceptionState.throwRangeError(ExceptionMessages::failedToConstruct(
"OfflineAudioContext",
@@ -112,8 +113,6 @@ OfflineAudioContext::OfflineAudioContext(Document* document, unsigned numberOfCh
String::number(numberOfFrames) + ", " +
String::number(sampleRate) + ")"));
}
-
- initialize();
}
OfflineAudioContext::~OfflineAudioContext()
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioParam.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698