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 7e4aec0812b8c8d6a637ae450ca68b878326ed1e..9fc13d4146540484c9c71db53919e0a3c3093dbd 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp |
@@ -90,6 +90,7 @@ OfflineAudioContext* OfflineAudioContext::create( |
OfflineAudioContext* audioContext = new OfflineAudioContext( |
document, numberOfChannels, numberOfFrames, sampleRate, exceptionState); |
+ audioContext->suspendIfNeeded(); |
if (!audioContext->destination()) { |
exceptionState.throwDOMException( |
@@ -123,7 +124,6 @@ OfflineAudioContext* OfflineAudioContext::create( |
offlineContextLengthHistogram.count(numberOfFrames); |
offlineContextSampleRateHistogram.count(sampleRate); |
- audioContext->suspendIfNeeded(); |
return audioContext; |
} |