| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef AudioListener_h | 29 #ifndef AudioListener_h |
| 30 #define AudioListener_h | 30 #define AudioListener_h |
| 31 | 31 |
| 32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
| 33 #include "platform/geometry/FloatPoint3D.h" | 33 #include "platform/geometry/FloatPoint3D.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/Vector.h" | 35 #include "wtf/Vector.h" |
| 36 | 36 |
| 37 #if ENABLE(WEB_AUDIO) | |
| 38 | |
| 39 namespace blink { | 37 namespace blink { |
| 40 | 38 |
| 41 class HRTFDatabaseLoader; | 39 class HRTFDatabaseLoader; |
| 42 class PannerHandler; | 40 class PannerHandler; |
| 43 | 41 |
| 44 // AudioListener maintains the state of the listener in the audio scene as defin
ed in the OpenAL specification. | 42 // AudioListener maintains the state of the listener in the audio scene as defin
ed in the OpenAL specification. |
| 45 | 43 |
| 46 class AudioListener : public GarbageCollectedFinalized<AudioListener>, public Sc
riptWrappable { | 44 class AudioListener : public GarbageCollectedFinalized<AudioListener>, public Sc
riptWrappable { |
| 47 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 46 public: |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // and can be referred in audio thread. | 110 // and can be referred in audio thread. |
| 113 // These raw pointers are safe because PannerHandler::uninitialize() | 111 // These raw pointers are safe because PannerHandler::uninitialize() |
| 114 // unregisters it from m_panners. | 112 // unregisters it from m_panners. |
| 115 HashSet<PannerHandler*> m_panners; | 113 HashSet<PannerHandler*> m_panners; |
| 116 // HRTF DB loader for panner node. | 114 // HRTF DB loader for panner node. |
| 117 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; | 115 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; |
| 118 }; | 116 }; |
| 119 | 117 |
| 120 } // namespace blink | 118 } // namespace blink |
| 121 | 119 |
| 122 #endif // ENABLE(WEB_AUDIO) | |
| 123 | |
| 124 #endif // AudioListener_h | 120 #endif // AudioListener_h |
| OLD | NEW |