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

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: 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
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..4fe4e40319aba074285c00d6636a46991b720013 100644
--- a/Source/core/platform/audio/HRTFPanner.h
+++ b/Source/core/platform/audio/HRTFPanner.h
@@ -31,9 +31,11 @@
namespace WebCore {
+class HRTFDatabase;
+
class HRTFPanner : public Panner {
public:
- explicit HRTFPanner(float sampleRate);
+ HRTFPanner(float sampleRate, HRTFDatabase*);
virtual ~HRTFPanner();
// Panner
@@ -53,6 +55,8 @@ private:
// and azimuthBlend which is an interpolation value from 0 -> 1.
int calculateDesiredAzimuthIndexAndBlend(double azimuth, double& azimuthBlend);
+ HRTFDatabase* m_database;
+
float m_sampleRate;
// We maintain two sets of convolvers for smooth cross-faded interpolations when

Powered by Google App Engine
This is Rietveld 408576698