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

Unified Diff: third_party/WebKit/Source/platform/audio/StereoPanner.cpp

Issue 2272683003: Remove redundant definition of Spatializer abstract class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix reference URL Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « third_party/WebKit/Source/platform/audio/StereoPanner.h ('k') | third_party/WebKit/Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698