Index: Source/modules/webaudio/PannerNode.cpp |
diff --git a/Source/modules/webaudio/PannerNode.cpp b/Source/modules/webaudio/PannerNode.cpp |
index 06c204be13995c94cb079589a0a7705368bd9e69..0fd7edc8a1219fd8a180e144c525e3b20eeb2395 100644 |
--- a/Source/modules/webaudio/PannerNode.cpp |
+++ b/Source/modules/webaudio/PannerNode.cpp |
@@ -36,8 +36,6 @@ |
#include "modules/webaudio/AudioNodeOutput.h" |
#include "wtf/MathExtras.h" |
-using namespace std; |
- |
namespace WebCore { |
static void fixNANs(double &x) |
@@ -467,8 +465,8 @@ double PannerNode::calculateDopplerRate() |
sourceProjection = -sourceProjection; |
double scaledSpeedOfSound = speedOfSound / dopplerFactor; |
- listenerProjection = min(listenerProjection, scaledSpeedOfSound); |
- sourceProjection = min(sourceProjection, scaledSpeedOfSound); |
+ listenerProjection = std::min(listenerProjection, scaledSpeedOfSound); |
+ sourceProjection = std::min(sourceProjection, scaledSpeedOfSound); |
dopplerShift = ((speedOfSound - dopplerFactor * listenerProjection) / (speedOfSound - dopplerFactor * sourceProjection)); |
fixNANs(dopplerShift); // avoid illegal values |