| 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 18 matching lines...) Expand all Loading... |
| 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/HRTFDatabaseLoader.h" |
| 32 #include "platform/audio/Panner.h" | 32 #include "platform/audio/Panner.h" |
| 33 #include "modules/webaudio/AudioListener.h" | 33 #include "modules/webaudio/AudioListener.h" |
| 34 #include "modules/webaudio/AudioNode.h" | 34 #include "modules/webaudio/AudioNode.h" |
| 35 #include "platform/geometry/FloatPoint3D.h" | 35 #include "platform/geometry/FloatPoint3D.h" |
| 36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace blink { |
| 40 | 40 |
| 41 // PannerNode is an AudioNode with one input and one output. | 41 // PannerNode is an AudioNode with one input and one output. |
| 42 // It positions a sound in 3D space, with the exact effect dependent on the pann
ing model. | 42 // It positions a sound in 3D space, with the exact effect dependent on the pann
ing model. |
| 43 // 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 // It has a position and an orientation in 3D space which is relative to the pos
ition and orientation of the context's AudioListener. |
| 44 // A distance effect will attenuate the gain as the position moves away from the
listener. | 44 // A distance effect will attenuate the gain as the position moves away from the
listener. |
| 45 // A cone effect will attenuate the gain as the orientation moves away from the
listener. | 45 // A cone effect will attenuate the gain as the orientation moves away from the
listener. |
| 46 // All of these effects follow the OpenAL specification very closely. | 46 // All of these effects follow the OpenAL specification very closely. |
| 47 | 47 |
| 48 class PannerNode FINAL : public AudioNode { | 48 class PannerNode FINAL : public AudioNode { |
| 49 public: | 49 public: |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; | 158 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; |
| 159 | 159 |
| 160 // AudioContext's connection count | 160 // AudioContext's connection count |
| 161 unsigned m_connectionCount; | 161 unsigned m_connectionCount; |
| 162 | 162 |
| 163 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. | 163 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. |
| 164 mutable Mutex m_processLock; | 164 mutable Mutex m_processLock; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace WebCore | 167 } // namespace blink |
| 168 | 168 |
| 169 #endif // PannerNode_h | 169 #endif // PannerNode_h |
| OLD | NEW |