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

Unified Diff: Source/modules/webaudio/PannerNode.h

Issue 393363002: Move handle of HRTFDatabaseLoader to AudioListener. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update as review. Created 6 years, 5 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/modules/webaudio/PannerNode.h
diff --git a/Source/modules/webaudio/PannerNode.h b/Source/modules/webaudio/PannerNode.h
index 840982b387ff8fb881b4ee2d77e03e3a44c4e5c6..5896935ac658c5d42fa387be38273101330b6295 100644
--- a/Source/modules/webaudio/PannerNode.h
+++ b/Source/modules/webaudio/PannerNode.h
@@ -28,7 +28,6 @@
#include "platform/audio/AudioBus.h"
#include "platform/audio/Cone.h"
#include "platform/audio/Distance.h"
-#include "platform/audio/HRTFDatabaseLoader.h"
#include "platform/audio/Panner.h"
#include "modules/webaudio/AudioListener.h"
#include "modules/webaudio/AudioNode.h"
@@ -38,6 +37,8 @@
namespace WebCore {
+class HRTFDatabaseLoader;
+
// PannerNode is an AudioNode with one input and one output.
// It positions a sound in 3D space, with the exact effect dependent on the panning model.
// It has a position and an orientation in 3D space which is relative to the position and orientation of the context's AudioListener.
@@ -112,6 +113,7 @@ private:
// AudioContext's listener
AudioListener* listener();
+ HRTFDatabaseLoader* hrtfDatabaseLoader() { return listener()->hrtfDatabaseLoader(); }
bool setPanningModel(unsigned); // Returns true on success.
bool setDistanceModel(unsigned); // Returns true on success.
@@ -155,8 +157,6 @@ private:
float m_cachedDistanceConeGain;
double m_cachedDopplerRate;
- RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader;
-
// AudioContext's connection count
unsigned m_connectionCount;

Powered by Google App Engine
This is Rietveld 408576698