Index: Source/modules/webaudio/OfflineAudioContext.cpp |
diff --git a/Source/modules/webaudio/OfflineAudioContext.cpp b/Source/modules/webaudio/OfflineAudioContext.cpp |
index fb4cd1ae4ff1a64ae936bc2bef5c56f8bc644dc9..87f47d3aff0966b0bc430ef981716e2f1879057a 100644 |
--- a/Source/modules/webaudio/OfflineAudioContext.cpp |
+++ b/Source/modules/webaudio/OfflineAudioContext.cpp |
@@ -31,7 +31,6 @@ |
#include "core/dom/Document.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/ScriptExecutionContext.h" |
-#include "core/platform/audio/HRTFDatabaseLoader.h" |
namespace WebCore { |
@@ -45,10 +44,7 @@ PassRefPtr<OfflineAudioContext> OfflineAudioContext::create(ScriptExecutionConte |
Document* document = toDocument(context); |
- // FIXME: offline contexts have limitations on supported sample-rates. |
- // Currently all AudioContexts must have the same sample-rate. |
- HRTFDatabaseLoader* loader = HRTFDatabaseLoader::loader(); |
- if (numberOfChannels > 10 || !isSampleRateRangeGood(sampleRate) || (loader && loader->databaseSampleRate() != sampleRate)) { |
+ if (numberOfChannels > 10 || !isSampleRateRangeGood(sampleRate)) { |
ec = SYNTAX_ERR; |
return 0; |
} |