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

Unified Diff: Source/core/platform/audio/HRTFPanner.h

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/HRTFDatabaseLoader.cpp ('k') | Source/core/platform/audio/HRTFPanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/HRTFPanner.h
diff --git a/Source/core/platform/audio/HRTFPanner.h b/Source/core/platform/audio/HRTFPanner.h
index 235f82be0dfed8b33e1346b0759325a689b764a1..1e63ddd79c06be9d33542caba6598d05253510d9 100644
--- a/Source/core/platform/audio/HRTFPanner.h
+++ b/Source/core/platform/audio/HRTFPanner.h
@@ -26,6 +26,7 @@
#define HRTFPanner_h
#include "core/platform/audio/FFTConvolver.h"
+#include "core/platform/audio/HRTFDatabaseLoader.h"
#include "core/platform/audio/Panner.h"
#include "modules/webaudio/DelayDSPKernel.h"
@@ -33,7 +34,7 @@ namespace WebCore {
class HRTFPanner : public Panner {
public:
- explicit HRTFPanner(float sampleRate);
+ HRTFPanner(float sampleRate, HRTFDatabaseLoader*);
virtual ~HRTFPanner();
// Panner
@@ -53,6 +54,8 @@ private:
// and azimuthBlend which is an interpolation value from 0 -> 1.
int calculateDesiredAzimuthIndexAndBlend(double azimuth, double& azimuthBlend);
+ RefPtr<HRTFDatabaseLoader> m_databaseLoader;
+
float m_sampleRate;
// We maintain two sets of convolvers for smooth cross-faded interpolations when
« no previous file with comments | « Source/core/platform/audio/HRTFDatabaseLoader.cpp ('k') | Source/core/platform/audio/HRTFPanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698