| 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef Distance_h | 29 #ifndef Distance_h |
| 30 #define Distance_h | 30 #define Distance_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace blink { |
| 35 | 35 |
| 36 // Distance models are defined according to the OpenAL specification: | 36 // Distance models are defined according to the OpenAL specification: |
| 37 // http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specifica
tion.htm. | 37 // http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specifica
tion.htm. |
| 38 | 38 |
| 39 class PLATFORM_EXPORT DistanceEffect { | 39 class PLATFORM_EXPORT DistanceEffect { |
| 40 public: | 40 public: |
| 41 enum ModelType { | 41 enum ModelType { |
| 42 ModelLinear = 0, | 42 ModelLinear = 0, |
| 43 ModelInverse = 1, | 43 ModelInverse = 1, |
| 44 ModelExponential = 2 | 44 ModelExponential = 2 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 double inverseGain(double distance); | 71 double inverseGain(double distance); |
| 72 double exponentialGain(double distance); | 72 double exponentialGain(double distance); |
| 73 | 73 |
| 74 ModelType m_model; | 74 ModelType m_model; |
| 75 bool m_isClamped; | 75 bool m_isClamped; |
| 76 double m_refDistance; | 76 double m_refDistance; |
| 77 double m_maxDistance; | 77 double m_maxDistance; |
| 78 double m_rolloffFactor; | 78 double m_rolloffFactor; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace WebCore | 81 } // namespace blink |
| 82 | 82 |
| 83 #endif // Distance_h | 83 #endif // Distance_h |
| OLD | NEW |