| 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 Spatializer_h | 5 #ifndef Spatializer_h |
| 6 #define Spatializer_h | 6 #define Spatializer_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| 11 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
| 12 | 12 |
| 13 #if ENABLE(WEB_AUDIO) | |
| 14 | |
| 15 namespace blink { | 13 namespace blink { |
| 16 | 14 |
| 17 class AudioBus; | 15 class AudioBus; |
| 18 | 16 |
| 19 // Abstract base class for spatializing a mono or stereo source. | 17 // Abstract base class for spatializing a mono or stereo source. |
| 20 class PLATFORM_EXPORT Spatializer { | 18 class PLATFORM_EXPORT Spatializer { |
| 21 USING_FAST_MALLOC(Spatializer); | 19 USING_FAST_MALLOC(Spatializer); |
| 22 WTF_MAKE_NONCOPYABLE(Spatializer); | 20 WTF_MAKE_NONCOPYABLE(Spatializer); |
| 23 public: | 21 public: |
| 24 enum { | 22 enum { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 virtual void reset() = 0; | 40 virtual void reset() = 0; |
| 43 virtual double tailTime() const = 0; | 41 virtual double tailTime() const = 0; |
| 44 virtual double latencyTime() const = 0; | 42 virtual double latencyTime() const = 0; |
| 45 | 43 |
| 46 protected: | 44 protected: |
| 47 explicit Spatializer(PanningModel model) { } | 45 explicit Spatializer(PanningModel model) { } |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace blink | 48 } // namespace blink |
| 51 | 49 |
| 52 #endif // ENABLE(WEB_AUDIO) | |
| 53 | |
| 54 #endif // Spatializer_h | 50 #endif // Spatializer_h |
| OLD | NEW |