Chromium Code Reviews| Index: Source/modules/webaudio/AudioListener.h |
| diff --git a/Source/modules/webaudio/AudioListener.h b/Source/modules/webaudio/AudioListener.h |
| index 1c730f892cbab6dc96b6a7ab032150f13854d82f..68e76126d0113349b3fb778872ec2b0cd4720624 100644 |
| --- a/Source/modules/webaudio/AudioListener.h |
| +++ b/Source/modules/webaudio/AudioListener.h |
| @@ -38,6 +38,7 @@ |
| namespace WebCore { |
| +class HRTFDatabaseLoader; |
| class PannerNode; |
| // AudioListener maintains the state of the listener in the audio scene as defined in the OpenAL specification. |
| @@ -79,6 +80,9 @@ public: |
| void addPanner(PannerNode*); |
| void removePanner(PannerNode*); |
| + void createAndLoadHRTFDatabaseLoader(float); |
| + HRTFDatabaseLoader* hrtfDatabaseLoader() { return m_hrtfDatabaseLoader.get(); } |
| + |
| void trace(Visitor*) { } |
| private: |
| @@ -100,9 +104,11 @@ private: |
| // Synchronize a panner's process() with setting of the state of the listener. |
| mutable Mutex m_listenerLock; |
| - |
| // List for pannerNodes in context. |
| Vector<PannerNode*> m_panners; |
| + // HRTF DB loader for panner node. It should be allocated once on constructor of panner node, |
| + // then keep handle for efficient loading. |
|
Raymond Toy
2014/07/17 17:25:45
This comment is no longer valid. Remove this?
|
| + RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; |
| }; |
| } // WebCore |