Index: Source/platform/audio/HRTFDatabase.cpp |
diff --git a/Source/platform/audio/HRTFDatabase.cpp b/Source/platform/audio/HRTFDatabase.cpp |
index fe9e82dda50a770ec0c1c92b1b493f1990901a66..1815742f45ba3e9944be5c618f51e12a192e0469 100644 |
--- a/Source/platform/audio/HRTFDatabase.cpp |
+++ b/Source/platform/audio/HRTFDatabase.cpp |
@@ -32,9 +32,6 @@ |
#include "platform/audio/HRTFDatabase.h" |
- |
-using namespace std; |
- |
namespace blink { |
const int HRTFDatabase::MinElevation = -45; |
@@ -111,8 +108,8 @@ void HRTFDatabase::getKernelsFromAzimuthElevation(double azimuthBlend, unsigned |
unsigned HRTFDatabase::indexFromElevationAngle(double elevationAngle) |
{ |
// Clamp to allowed range. |
- elevationAngle = max(static_cast<double>(MinElevation), elevationAngle); |
- elevationAngle = min(static_cast<double>(MaxElevation), elevationAngle); |
+ elevationAngle = std::max(static_cast<double>(MinElevation), elevationAngle); |
+ elevationAngle = std::min(static_cast<double>(MaxElevation), elevationAngle); |
unsigned elevationIndex = static_cast<int>(InterpolationFactor * (elevationAngle - MinElevation) / RawElevationAngleSpacing); |
return elevationIndex; |