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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioListener.cpp

Issue 2380183002: Remove WebAudio doppler effect API surface (already no-ops) (Closed)
Patch Set: Rebase Created 4 years, 2 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/modules/webaudio/AudioListener.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp b/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
index afcef8276fe1b03aa203aa114d1d099933983020..7b6194070eb1196e94217d0d3ee9bbabcae2aafb 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
@@ -50,8 +50,6 @@ AudioListener::AudioListener(BaseAudioContext& context)
m_upX(AudioParam::create(context, ParamTypeAudioListenerUpX, 0.0)),
m_upY(AudioParam::create(context, ParamTypeAudioListenerUpY, 1.0)),
m_upZ(AudioParam::create(context, ParamTypeAudioListenerUpZ, 0.0)),
- m_dopplerFactor(1),
- m_speedOfSound(343.3),
m_lastUpdateTime(-1),
m_isListenerDirty(false),
m_positionXValues(AudioUtilities::kRenderQuantumFrames),
@@ -284,17 +282,4 @@ void AudioListener::setUpVector(const FloatPoint3D& upVector) {
markPannersAsDirty(PannerHandler::AzimuthElevationDirty);
}
-void AudioListener::setVelocity(float x, float y, float z) {
- // The velocity is not used internally and cannot be read back by scripts,
- // so it can be ignored entirely.
-}
-
-void AudioListener::setDopplerFactor(double dopplerFactor) {
- m_dopplerFactor = dopplerFactor;
-}
-
-void AudioListener::setSpeedOfSound(double speedOfSound) {
- m_speedOfSound = speedOfSound;
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698