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

Unified Diff: Source/core/platform/audio/Panner.cpp

Issue 14636011: Support multiple HRTFDatabases for different sample-rates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add ASSERT(isMainThread()) Created 7 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 | « Source/core/platform/audio/Panner.h ('k') | Source/modules/webaudio/AudioContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/Panner.cpp
diff --git a/Source/core/platform/audio/Panner.cpp b/Source/core/platform/audio/Panner.cpp
index 8bd0a04a38c191e221b589afd2bb8f9767639c3d..96ca460e635b472546109a9a8ac5eadfe215792b 100644
--- a/Source/core/platform/audio/Panner.cpp
+++ b/Source/core/platform/audio/Panner.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
-PassOwnPtr<Panner> Panner::create(PanningModel model, float sampleRate)
+PassOwnPtr<Panner> Panner::create(PanningModel model, float sampleRate, HRTFDatabaseLoader* databaseLoader)
{
OwnPtr<Panner> panner;
@@ -48,7 +48,7 @@ PassOwnPtr<Panner> Panner::create(PanningModel model, float sampleRate)
break;
case PanningModelHRTF:
- panner = adoptPtr(new HRTFPanner(sampleRate));
+ panner = adoptPtr(new HRTFPanner(sampleRate, databaseLoader));
break;
// FIXME: sound field panning is not yet implemented...
« no previous file with comments | « Source/core/platform/audio/Panner.h ('k') | Source/modules/webaudio/AudioContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698