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" | |
32 #include "platform/audio/Panner.h" | 31 #include "platform/audio/Panner.h" |
33 #include "modules/webaudio/AudioListener.h" | 32 #include "modules/webaudio/AudioListener.h" |
34 #include "modules/webaudio/AudioNode.h" | 33 #include "modules/webaudio/AudioNode.h" |
35 #include "platform/geometry/FloatPoint3D.h" | 34 #include "platform/geometry/FloatPoint3D.h" |
36 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
37 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
38 | 37 |
39 namespace blink { | 38 namespace blink { |
40 | 39 |
41 // PannerNode is an AudioNode with one input and one output. | 40 // PannerNode is an AudioNode with one input and one output. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 DistanceEffect m_distanceEffect; | 147 DistanceEffect m_distanceEffect; |
149 ConeEffect m_coneEffect; | 148 ConeEffect m_coneEffect; |
150 float m_lastGain; | 149 float m_lastGain; |
151 | 150 |
152 // Cached values | 151 // Cached values |
153 double m_cachedAzimuth; | 152 double m_cachedAzimuth; |
154 double m_cachedElevation; | 153 double m_cachedElevation; |
155 float m_cachedDistanceConeGain; | 154 float m_cachedDistanceConeGain; |
156 double m_cachedDopplerRate; | 155 double m_cachedDopplerRate; |
157 | 156 |
158 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; | |
159 | |
160 // AudioContext's connection count | 157 // AudioContext's connection count |
161 unsigned m_connectionCount; | 158 unsigned m_connectionCount; |
162 | 159 |
163 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. | 160 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. |
164 mutable Mutex m_processLock; | 161 mutable Mutex m_processLock; |
165 }; | 162 }; |
166 | 163 |
167 } // namespace blink | 164 } // namespace blink |
168 | 165 |
169 #endif // PannerNode_h | 166 #endif // PannerNode_h |
OLD | NEW |