Index: third_party/WebKit/Source/platform/audio/HRTFKernel.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/HRTFKernel.cpp b/third_party/WebKit/Source/platform/audio/HRTFKernel.cpp |
index df21d791bc4915c0e37aa913e0b0d5440311019a..01c58c445ca78ca0fa6a66c7fd782d572acd2075 100644 |
--- a/third_party/WebKit/Source/platform/audio/HRTFKernel.cpp |
+++ b/third_party/WebKit/Source/platform/audio/HRTFKernel.cpp |
@@ -26,9 +26,9 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "platform/FloatConversion.h" |
-#include "platform/audio/AudioChannel.h" |
#include "platform/audio/HRTFKernel.h" |
+ |
+#include "platform/audio/AudioChannel.h" |
#include "wtf/MathExtras.h" |
#include "wtf/PtrUtil.h" |
#include <algorithm> |
@@ -57,7 +57,7 @@ static float extractAverageGroupDelay(AudioChannel* channel, size_t analysisFFTS |
FFTFrame estimationFrame(analysisFFTSize); |
estimationFrame.doFFT(impulseP); |
- float frameDelay = narrowPrecisionToFloat(estimationFrame.extractAverageGroupDelay()); |
+ float frameDelay = clampTo<float>(estimationFrame.extractAverageGroupDelay()); |
estimationFrame.doInverseFFT(impulseP); |
return frameDelay; |