| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "modules/webaudio/AudioListener.h" | 28 #include "modules/webaudio/AudioListener.h" |
| 29 #include "modules/webaudio/AudioNode.h" | 29 #include "modules/webaudio/AudioNode.h" |
| 30 #include "platform/audio/AudioBus.h" | 30 #include "platform/audio/AudioBus.h" |
| 31 #include "platform/audio/Cone.h" | 31 #include "platform/audio/Cone.h" |
| 32 #include "platform/audio/Distance.h" | 32 #include "platform/audio/Distance.h" |
| 33 #include "platform/audio/Panner.h" | 33 #include "platform/audio/Panner.h" |
| 34 #include "platform/geometry/FloatPoint3D.h" | 34 #include "platform/geometry/FloatPoint3D.h" |
| 35 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
| 36 | 36 |
| 37 #if ENABLE(WEB_AUDIO) | |
| 38 | |
| 39 namespace blink { | 37 namespace blink { |
| 40 | 38 |
| 41 class AbstractAudioContext; | 39 class AbstractAudioContext; |
| 42 | 40 |
| 43 // PannerNode is an AudioNode with one input and one output. | 41 // PannerNode is an AudioNode with one input and one output. |
| 44 // 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. |
| 45 // 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. |
| 46 // 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. |
| 47 // 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. |
| 48 // All of these effects follow the OpenAL specification very closely. | 46 // All of these effects follow the OpenAL specification very closely. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void setConeOuterAngle(double); | 180 void setConeOuterAngle(double); |
| 183 double coneOuterGain() const; | 181 double coneOuterGain() const; |
| 184 void setConeOuterGain(double); | 182 void setConeOuterGain(double); |
| 185 | 183 |
| 186 private: | 184 private: |
| 187 PannerNode(AbstractAudioContext&, float sampleRate); | 185 PannerNode(AbstractAudioContext&, float sampleRate); |
| 188 }; | 186 }; |
| 189 | 187 |
| 190 } // namespace blink | 188 } // namespace blink |
| 191 | 189 |
| 192 #endif // ENABLE(WEB_AUDIO) | |
| 193 | |
| 194 #endif // PannerNode_h | 190 #endif // PannerNode_h |
| OLD | NEW |