| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef StereoPanner_h | 5 #ifndef StereoPanner_h |
| 6 #define StereoPanner_h | 6 #define StereoPanner_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "platform/wtf/Noncopyable.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class AudioBus; | 14 class AudioBus; |
| 15 | 15 |
| 16 // Implement the equal-power panning algorithm for mono or stereo input. See: | 16 // Implement the equal-power panning algorithm for mono or stereo input. See: |
| 17 // https://webaudio.github.io/web-audio-api/#Spatialzation-equal-power-panning | 17 // https://webaudio.github.io/web-audio-api/#Spatialzation-equal-power-panning |
| 18 | 18 |
| 19 class PLATFORM_EXPORT StereoPanner { | 19 class PLATFORM_EXPORT StereoPanner { |
| 20 USING_FAST_MALLOC(StereoPanner); | 20 USING_FAST_MALLOC(StereoPanner); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 bool m_isFirstRender; | 39 bool m_isFirstRender; |
| 40 double m_smoothingConstant; | 40 double m_smoothingConstant; |
| 41 | 41 |
| 42 double m_pan; | 42 double m_pan; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif // StereoPanner_h | 47 #endif // StereoPanner_h |
| OLD | NEW |