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 StereoPannerNode_h | 5 #ifndef StereoPannerNode_h |
6 #define StereoPannerNode_h | 6 #define StereoPannerNode_h |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "modules/webaudio/AudioNode.h" | 9 #include "modules/webaudio/AudioNode.h" |
10 #include "modules/webaudio/AudioParam.h" | 10 #include "modules/webaudio/AudioParam.h" |
11 #include "platform/audio/AudioBus.h" | 11 #include "platform/audio/AudioBus.h" |
12 #include "platform/audio/Spatializer.h" | 12 #include "platform/audio/Spatializer.h" |
13 | 13 |
14 #if ENABLE(WEB_AUDIO) | |
15 | |
16 namespace blink { | 14 namespace blink { |
17 | 15 |
18 class AbstractAudioContext; | 16 class AbstractAudioContext; |
19 | 17 |
20 // StereoPannerNode is an AudioNode with one input and one output. It is | 18 // StereoPannerNode is an AudioNode with one input and one output. It is |
21 // specifically designed for equal-power stereo panning. | 19 // specifically designed for equal-power stereo panning. |
22 class StereoPannerHandler final : public AudioHandler { | 20 class StereoPannerHandler final : public AudioHandler { |
23 public: | 21 public: |
24 static PassRefPtr<StereoPannerHandler> create(AudioNode&, float sampleRate,
AudioParamHandler& pan); | 22 static PassRefPtr<StereoPannerHandler> create(AudioNode&, float sampleRate,
AudioParamHandler& pan); |
25 ~StereoPannerHandler() override; | 23 ~StereoPannerHandler() override; |
(...skipping 24 matching lines...) Expand all Loading... |
50 AudioParam* pan() const; | 48 AudioParam* pan() const; |
51 | 49 |
52 private: | 50 private: |
53 StereoPannerNode(AbstractAudioContext&, float sampleRate); | 51 StereoPannerNode(AbstractAudioContext&, float sampleRate); |
54 | 52 |
55 Member<AudioParam> m_pan; | 53 Member<AudioParam> m_pan; |
56 }; | 54 }; |
57 | 55 |
58 } // namespace blink | 56 } // namespace blink |
59 | 57 |
60 #endif // ENABLE(WEB_AUDIO) | |
61 | |
62 #endif // StereoPannerNode_h | 58 #endif // StereoPannerNode_h |
OLD | NEW |