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

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

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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"
(...skipping 15 matching lines...) Expand all
26 AudioParamHandler& pan); 26 AudioParamHandler& pan);
27 ~StereoPannerHandler() override; 27 ~StereoPannerHandler() override;
28 28
29 void Process(size_t frames_to_process) override; 29 void Process(size_t frames_to_process) override;
30 void ProcessOnlyAudioParams(size_t frames_to_process) override; 30 void ProcessOnlyAudioParams(size_t frames_to_process) override;
31 void Initialize() override; 31 void Initialize() override;
32 32
33 void SetChannelCount(unsigned long, ExceptionState&) final; 33 void SetChannelCount(unsigned long, ExceptionState&) final;
34 void SetChannelCountMode(const String&, ExceptionState&) final; 34 void SetChannelCountMode(const String&, ExceptionState&) final;
35 35
36 // AudioNode
37 double TailTime() const override { return 0; } 36 double TailTime() const override { return 0; }
38 double LatencyTime() const override { return 0; } 37 double LatencyTime() const override { return 0; }
38 bool RequiresTailProcessing() const override { return false; }
39 39
40 private: 40 private:
41 StereoPannerHandler(AudioNode&, float sample_rate, AudioParamHandler& pan); 41 StereoPannerHandler(AudioNode&, float sample_rate, AudioParamHandler& pan);
42 42
43 std::unique_ptr<StereoPanner> stereo_panner_; 43 std::unique_ptr<StereoPanner> stereo_panner_;
44 RefPtr<AudioParamHandler> pan_; 44 RefPtr<AudioParamHandler> pan_;
45 45
46 AudioFloatArray sample_accurate_pan_values_; 46 AudioFloatArray sample_accurate_pan_values_;
47 47
48 FRIEND_TEST_ALL_PREFIXES(StereoPannerNodeTest, StereoPannerLifetime); 48 FRIEND_TEST_ALL_PREFIXES(StereoPannerNodeTest, StereoPannerLifetime);
(...skipping 13 matching lines...) Expand all
62 62
63 private: 63 private:
64 StereoPannerNode(BaseAudioContext&); 64 StereoPannerNode(BaseAudioContext&);
65 65
66 Member<AudioParam> pan_; 66 Member<AudioParam> pan_;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // StereoPannerNode_h 71 #endif // StereoPannerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698