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

Unified Diff: third_party/WebKit/Source/platform/audio/Spatializer.h

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/Spatializer.h
diff --git a/third_party/WebKit/Source/platform/audio/Spatializer.h b/third_party/WebKit/Source/platform/audio/Spatializer.h
deleted file mode 100644
index a4629a507dfab930a8e67ffbba9e1ea6ef8eda58..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/audio/Spatializer.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef Spatializer_h
-#define Spatializer_h
-
-#include "platform/PlatformExport.h"
-#include "wtf/Allocator.h"
-#include "wtf/Noncopyable.h"
-#include <memory>
-
-namespace blink {
-
-class AudioBus;
-
-// Abstract base class for spatializing a mono or stereo source.
-class PLATFORM_EXPORT Spatializer {
- USING_FAST_MALLOC(Spatializer);
- WTF_MAKE_NONCOPYABLE(Spatializer);
-public:
- enum {
- PanningModelEqualPower = 0
-
- // We have a plan to add more panning models other than equal-power.
- // (such as binaural-HRTF or N-channel surround panning)
- };
-
- typedef unsigned PanningModel;
-
- static std::unique_ptr<Spatializer> create(PanningModel, float sampleRate);
- virtual ~Spatializer();
-
- // Handle sample-accurate panning by AudioParam automation.
- virtual void panWithSampleAccurateValues(const AudioBus* inputBus, AudioBus* outputBuf, const float* panValues, size_t framesToProcess) = 0;
-
- // Handle de-zippered panning to a target value.
- virtual void panToTargetValue(const AudioBus* inputBus, AudioBus* outputBuf, float panValue, size_t framesToProcess) = 0;
-
- virtual void reset() = 0;
- virtual double tailTime() const = 0;
- virtual double latencyTime() const = 0;
-
-protected:
- explicit Spatializer(PanningModel model) { }
-};
-
-} // namespace blink
-
-#endif // Spatializer_h

Powered by Google App Engine
This is Rietveld 408576698