Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/StereoPannerNode.h

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698