| 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 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef Cone_h | 29 #ifndef Cone_h |
| 30 #define Cone_h | 30 #define Cone_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "platform/geometry/FloatPoint3D.h" | 33 #include "platform/geometry/FloatPoint3D.h" |
| 34 #include "wtf/Allocator.h" | 34 #include "wtf/Allocator.h" |
| 35 #include "wtf/build_config.h" | 35 #include "wtf/build_config.h" |
| 36 | 36 |
| 37 #if ENABLE(WEB_AUDIO) | |
| 38 | |
| 39 namespace blink { | 37 namespace blink { |
| 40 | 38 |
| 41 // Cone gain is defined according to the OpenAL specification | 39 // Cone gain is defined according to the OpenAL specification |
| 42 | 40 |
| 43 class PLATFORM_EXPORT ConeEffect { | 41 class PLATFORM_EXPORT ConeEffect { |
| 44 DISALLOW_NEW(); | 42 DISALLOW_NEW(); |
| 45 public: | 43 public: |
| 46 ConeEffect(); | 44 ConeEffect(); |
| 47 | 45 |
| 48 // Returns scalar gain for the given source/listener positions/orientations | 46 // Returns scalar gain for the given source/listener positions/orientations |
| (...skipping 10 matching lines...) Expand all Loading... |
| 59 double outerGain() const { return m_outerGain; } | 57 double outerGain() const { return m_outerGain; } |
| 60 | 58 |
| 61 protected: | 59 protected: |
| 62 double m_innerAngle; | 60 double m_innerAngle; |
| 63 double m_outerAngle; | 61 double m_outerAngle; |
| 64 double m_outerGain; | 62 double m_outerGain; |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace blink | 65 } // namespace blink |
| 68 | 66 |
| 69 #endif // ENABLE(WEB_AUDIO) | |
| 70 | |
| 71 #endif // Cone_h | 67 #endif // Cone_h |
| OLD | NEW |