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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFKernel.cpp

Issue 2342913003: Replace narrowPrecisionToFloat with clampTo<float> (Closed)
Patch Set: Created 4 years, 3 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
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;
« no previous file with comments | « third_party/WebKit/Source/platform/FloatConversion.h ('k') | third_party/WebKit/Source/platform/geometry/FloatPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698