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); |
} |