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

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

Issue 2356223002: Remove WebAudio doppler effect API surface (already no-ops) (Closed)
Patch Set: rebase Created 4 years, 3 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 2964ba63bfede3d7988853601881361fb7f2e663..69cca38235fed74ec27d7f383dc7d5b716c1aa4b 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
@@ -44,8 +44,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)
@@ -291,20 +289,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