OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef StereoPanner_h | |
6 #define StereoPanner_h | |
7 | |
8 #include "platform/audio/Spatializer.h" | |
9 | |
10 namespace blink { | |
11 | |
12 // Common type of stereo panner as found in normal audio mixing equipment. | |
13 class PLATFORM_EXPORT StereoPanner final : public Spatializer { | |
14 public: | |
15 StereoPanner(float sampleRate); | |
haraken
2014/11/13 02:08:27
Add explicit.
hongchan
2014/11/13 18:38:20
Done.
| |
16 | |
17 virtual void panWithSampleAccurateValues(const AudioBus* inputBus, AudioBus* outputBuf, const float* panValues, size_t framesToProcess) override; | |
18 virtual void panToTargetValue(const AudioBus* inputBus, AudioBus* outputBuf, float panValue, size_t framesToProcess) override; | |
19 | |
20 virtual void reset() override { } | |
21 | |
22 virtual double tailTime() const override { return 0; } | |
23 virtual double latencyTime() const override { return 0; } | |
24 | |
25 private: | |
26 bool m_isFirstRender; | |
27 double m_smoothingConstant; | |
28 | |
29 double m_gainL; | |
30 double m_gainR; | |
31 }; | |
32 | |
33 } // namespace blink | |
34 | |
35 #endif // StereoPanner_h | |
OLD | NEW |