| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #ifndef Panner_h | 29 #ifndef Panner_h |
| 30 #define Panner_h | 30 #define Panner_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "wtf/Allocator.h" | 33 #include "wtf/Allocator.h" |
| 34 #include "wtf/Noncopyable.h" | 34 #include "wtf/Noncopyable.h" |
| 35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
| 36 #include "wtf/build_config.h" | 36 #include "wtf/build_config.h" |
| 37 | 37 |
| 38 #if ENABLE(WEB_AUDIO) | |
| 39 | |
| 40 namespace blink { | 38 namespace blink { |
| 41 | 39 |
| 42 class AudioBus; | 40 class AudioBus; |
| 43 class HRTFDatabaseLoader; | 41 class HRTFDatabaseLoader; |
| 44 | 42 |
| 45 // Abstract base class for panning a mono or stereo source. | 43 // Abstract base class for panning a mono or stereo source. |
| 46 | 44 |
| 47 class PLATFORM_EXPORT Panner { | 45 class PLATFORM_EXPORT Panner { |
| 48 USING_FAST_MALLOC(Panner); | 46 USING_FAST_MALLOC(Panner); |
| 49 WTF_MAKE_NONCOPYABLE(Panner); | 47 WTF_MAKE_NONCOPYABLE(Panner); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 69 virtual double latencyTime() const = 0; | 67 virtual double latencyTime() const = 0; |
| 70 | 68 |
| 71 protected: | 69 protected: |
| 72 Panner(PanningModel model) : m_panningModel(model) { } | 70 Panner(PanningModel model) : m_panningModel(model) { } |
| 73 | 71 |
| 74 PanningModel m_panningModel; | 72 PanningModel m_panningModel; |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 } // namespace blink | 75 } // namespace blink |
| 78 | 76 |
| 79 #endif // ENABLE(WEB_AUDIO) | |
| 80 | |
| 81 #endif // Panner_h | 77 #endif // Panner_h |
| OLD | NEW |