Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / audio / StereoPanner.h
blob14b9caefe28b8d7bcf927705835781f8bf73f119
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.
5 #ifndef StereoPanner_h
6 #define StereoPanner_h
8 #include "platform/audio/Spatializer.h"
10 namespace blink {
12 // Common type of stereo panner as found in normal audio mixing equipment.
13 // See: http://webaudio.github.io/web-audio-api/#the-stereopannernode-interface
15 class PLATFORM_EXPORT StereoPanner final : public Spatializer {
16 public:
17 explicit StereoPanner(float sampleRate);
19 void panWithSampleAccurateValues(const AudioBus* inputBus, AudioBus* outputBuf, const float* panValues, size_t framesToProcess) override;
20 void panToTargetValue(const AudioBus* inputBus, AudioBus* outputBuf, float panValue, size_t framesToProcess) override;
22 void reset() override { }
24 double tailTime() const override { return 0; }
25 double latencyTime() const override { return 0; }
27 private:
28 bool m_isFirstRender;
29 double m_smoothingConstant;
31 double m_pan;
34 } // namespace blink
36 #endif // StereoPanner_h