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 11 matching lines...) Expand all Loading... |
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 "core/platform/audio/AudioBus.h" | 28 #include "core/platform/audio/AudioBus.h" |
29 #include "core/platform/audio/Cone.h" | 29 #include "core/platform/audio/Cone.h" |
30 #include "core/platform/audio/Distance.h" | 30 #include "core/platform/audio/Distance.h" |
31 #include "core/platform/audio/Panner.h" | 31 #include "core/platform/audio/Panner.h" |
32 #include "core/platform/graphics/FloatPoint3D.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 "modules/webaudio/AudioParam.h" | 34 #include "modules/webaudio/AudioParam.h" |
| 35 #include "platform/geometry/FloatPoint3D.h" |
36 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 // PannerNode is an AudioNode with one input and one output. | 40 // PannerNode is an AudioNode with one input and one output. |
41 // It positions a sound in 3D space, with the exact effect dependent on the pann
ing model. | 41 // It positions a sound in 3D space, with the exact effect dependent on the pann
ing model. |
42 // It has a position and an orientation in 3D space which is relative to the pos
ition and orientation of the context's AudioListener. | 42 // It has a position and an orientation in 3D space which is relative to the pos
ition and orientation of the context's AudioListener. |
43 // A distance effect will attenuate the gain as the position moves away from the
listener. | 43 // A distance effect will attenuate the gain as the position moves away from the
listener. |
44 // A cone effect will attenuate the gain as the orientation moves away from the
listener. | 44 // A cone effect will attenuate the gain as the orientation moves away from the
listener. |
45 // All of these effects follow the OpenAL specification very closely. | 45 // All of these effects follow the OpenAL specification very closely. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 unsigned m_connectionCount; | 156 unsigned m_connectionCount; |
157 | 157 |
158 // Synchronize process() and setPanningModel() which can change the panner. | 158 // Synchronize process() and setPanningModel() which can change the panner. |
159 mutable Mutex m_pannerLock; | 159 mutable Mutex m_pannerLock; |
160 }; | 160 }; |
161 | 161 |
162 } // namespace WebCore | 162 } // namespace WebCore |
163 | 163 |
164 #endif // PannerNode_h | 164 #endif // PannerNode_h |
OLD | NEW |