| Index: Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| diff --git a/Source/modules/webaudio/OfflineAudioDestinationNode.cpp b/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| index 055458216a64496c7eb5edf634a72d7bd8ac2217..4d10226a14fce9af496bcee54a569a4031222571 100644
|
| --- a/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| +++ b/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| @@ -96,6 +96,11 @@ void OfflineAudioDestinationNode::offlineRender()
|
| if (!m_renderBus.get())
|
| return;
|
|
|
| + bool isAudioContextInitialized = context()->isInitialized();
|
| + ASSERT(isAudioContextInitialized);
|
| + if (!isAudioContextInitialized)
|
| + return;
|
| +
|
| bool channelsMatch = m_renderBus->numberOfChannels() == m_renderTarget->numberOfChannels();
|
| ASSERT(channelsMatch);
|
| if (!channelsMatch)
|
| @@ -106,15 +111,6 @@ void OfflineAudioDestinationNode::offlineRender()
|
| if (!isRenderBusAllocated)
|
| return;
|
|
|
| - // Synchronize with HRTFDatabaseLoader.
|
| - // The database must be loaded before we can proceed.
|
| - HRTFDatabaseLoader* loader = context()->hrtfDatabaseLoader();
|
| - ASSERT(loader);
|
| - if (!loader)
|
| - return;
|
| -
|
| - loader->waitForLoaderThreadCompletion();
|
| -
|
| // Break up the render target into smaller "render quantize" sized pieces.
|
| // Render until we're finished.
|
| size_t framesToProcess = m_renderTarget->length();
|
|
|