X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fmodules%2Fwebaudio%2FAudioListener.h;h=6dbc92d0cab8275bccfd4fa6b4584d4ceced9231;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=214db390b700f960513c7b408f0d190be05c3f2e;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/modules/webaudio/AudioListener.h b/src/third_party/WebKit/Source/modules/webaudio/AudioListener.h index 214db39..6dbc92d 100644 --- a/src/third_party/WebKit/Source/modules/webaudio/AudioListener.h +++ b/src/third_party/WebKit/Source/modules/webaudio/AudioListener.h @@ -29,15 +29,16 @@ #ifndef AudioListener_h #define AudioListener_h -#include "bindings/v8/ScriptWrappable.h" +#include "bindings/core/v8/ScriptWrappable.h" #include "platform/geometry/FloatPoint3D.h" #include "platform/heap/Handle.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" #include "wtf/Vector.h" -namespace WebCore { +namespace blink { +class HRTFDatabaseLoader; class PannerNode; // AudioListener maintains the state of the listener in the audio scene as defined in the OpenAL specification. @@ -79,7 +80,13 @@ public: void addPanner(PannerNode*); void removePanner(PannerNode*); - void trace(Visitor*) { } + // HRTF DB loader + HRTFDatabaseLoader* hrtfDatabaseLoader() { return m_hrtfDatabaseLoader.get(); } + void createAndLoadHRTFDatabaseLoader(float); + bool isHRTFDatabaseLoaded(); + void waitForHRTFDatabaseLoaderThreadCompletion(); + + void trace(Visitor*); private: AudioListener(); @@ -100,11 +107,13 @@ private: // Synchronize a panner's process() with setting of the state of the listener. mutable Mutex m_listenerLock; - - // List for pannerNodes in context. - Vector m_panners; + // List for pannerNodes in context. This is updated only in the main thread, + // and can be referred in audio thread. + WillBeHeapVector > m_panners; + // HRTF DB loader for panner node. + RefPtr m_hrtfDatabaseLoader; }; -} // WebCore +} // namespace blink #endif // AudioListener_h