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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef PannerNode_h | 25 #ifndef PannerNode_h |
26 #define PannerNode_h | 26 #define PannerNode_h |
27 | 27 |
28 #include "platform/audio/AudioBus.h" | 28 #include "platform/audio/AudioBus.h" |
29 #include "platform/audio/Cone.h" | 29 #include "platform/audio/Cone.h" |
30 #include "platform/audio/Distance.h" | 30 #include "platform/audio/Distance.h" |
| 31 #include "platform/audio/HRTFDatabaseLoader.h" |
31 #include "platform/audio/Panner.h" | 32 #include "platform/audio/Panner.h" |
32 #include "modules/webaudio/AudioListener.h" | 33 #include "modules/webaudio/AudioListener.h" |
33 #include "modules/webaudio/AudioNode.h" | 34 #include "modules/webaudio/AudioNode.h" |
34 #include "modules/webaudio/AudioParam.h" | 35 #include "modules/webaudio/AudioParam.h" |
35 #include "platform/geometry/FloatPoint3D.h" | 36 #include "platform/geometry/FloatPoint3D.h" |
36 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
37 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
38 | 39 |
39 namespace WebCore { | 40 namespace WebCore { |
40 | 41 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 FloatPoint3D m_orientation; | 140 FloatPoint3D m_orientation; |
140 FloatPoint3D m_velocity; | 141 FloatPoint3D m_velocity; |
141 | 142 |
142 // Gain | 143 // Gain |
143 RefPtr<AudioParam> m_distanceGain; | 144 RefPtr<AudioParam> m_distanceGain; |
144 RefPtr<AudioParam> m_coneGain; | 145 RefPtr<AudioParam> m_coneGain; |
145 DistanceEffect m_distanceEffect; | 146 DistanceEffect m_distanceEffect; |
146 ConeEffect m_coneEffect; | 147 ConeEffect m_coneEffect; |
147 float m_lastGain; | 148 float m_lastGain; |
148 | 149 |
| 150 // HRTF Database loader |
| 151 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; |
| 152 |
149 unsigned m_connectionCount; | 153 unsigned m_connectionCount; |
150 | 154 |
151 // Synchronize process() and setPanningModel() which can change the panner. | 155 // Synchronize process() and setPanningModel() which can change the panner. |
152 mutable Mutex m_pannerLock; | 156 mutable Mutex m_pannerLock; |
153 }; | 157 }; |
154 | 158 |
155 } // namespace WebCore | 159 } // namespace WebCore |
156 | 160 |
157 #endif // PannerNode_h | 161 #endif // PannerNode_h |
OLD | NEW |