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

Unified Diff: Source/modules/webaudio/PannerNode.cpp

Issue 231033002: Remove unused AudioParams in PannerNode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/modules/webaudio/PannerNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/PannerNode.cpp
diff --git a/Source/modules/webaudio/PannerNode.cpp b/Source/modules/webaudio/PannerNode.cpp
index 0bef552ba1b4be0158dedf52151673f46e96eae1..490308d9f4ce0a01b8a91d76427bd0eaeeff4cc0 100644
--- a/Source/modules/webaudio/PannerNode.cpp
+++ b/Source/modules/webaudio/PannerNode.cpp
@@ -76,9 +76,6 @@ PannerNode::PannerNode(AudioContext* context, float sampleRate)
m_channelCountMode = ClampedMax;
m_channelInterpretation = AudioBus::Speakers;
- m_distanceGain = AudioParam::create(context, "distanceGain", 1.0, 0.0, 1.0);
- m_coneGain = AudioParam::create(context, "coneGain", 1.0, 0.0, 1.0);
-
m_cachedListener = AudioListener::create();
setNodeType(NodeTypePanner);
@@ -429,13 +426,8 @@ float PannerNode::calculateDistanceConeGain()
double listenerDistance = m_position.distanceTo(listenerPosition);
double distanceGain = m_distanceEffect.gain(listenerDistance);
-
- m_distanceGain->setValue(static_cast<float>(distanceGain));
-
double coneGain = m_coneEffect.gain(m_position, m_orientation, listenerPosition);
- m_coneGain->setValue(static_cast<float>(coneGain));
-
return float(distanceGain * coneGain);
}
« no previous file with comments | « Source/modules/webaudio/PannerNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698