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.
8 #include "platform/audio/Spatializer.h"
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
{
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; }
29 double m_smoothingConstant
;
36 #endif // StereoPanner_h