Index: third_party/WebKit/Source/platform/audio/StereoPanner.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/StereoPanner.cpp b/third_party/WebKit/Source/platform/audio/StereoPanner.cpp |
index bc636e286b0b1da790ddbd706a9991c04a829a3e..1204ea5fbf5e87045d1216477f6d6c2476003f96 100644 |
--- a/third_party/WebKit/Source/platform/audio/StereoPanner.cpp |
+++ b/third_party/WebKit/Source/platform/audio/StereoPanner.cpp |
@@ -16,8 +16,13 @@ namespace blink { |
// Implement equal-power panning algorithm for mono or stereo input. |
// See: http://webaudio.github.io/web-audio-api/#panning-algorithm |
-StereoPanner::StereoPanner(float sampleRate) : Spatializer(PanningModelEqualPower) |
- , m_isFirstRender(true) |
+std::unique_ptr<StereoPanner> StereoPanner::create(float sampleRate) |
+{ |
+ return wrapUnique(new StereoPanner(sampleRate)); |
+} |
+ |
+StereoPanner::StereoPanner(float sampleRate) |
+ : m_isFirstRender(true) |
, m_pan(0.0) |
{ |
// Convert smoothing time (50ms) to a per-sample time value. |