From 7ec3cf46d62b45c7c64530e71d5b06d320dc3007 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 14 Jul 2014 20:26:38 -0400 Subject: [PATCH] SPU2-X: Fix float truncation warnings --- plugins/spu2-x/src/Timestretcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/spu2-x/src/Timestretcher.cpp b/plugins/spu2-x/src/Timestretcher.cpp index 527aad6e1c..2b30c18103 100644 --- a/plugins/spu2-x/src/Timestretcher.cpp +++ b/plugins/spu2-x/src/Timestretcher.cpp @@ -189,9 +189,9 @@ void SndBuffer::UpdateTempoChangeSoundTouch2() #endif //Algorithm params: (threshold params (hysteresis), etc) - const float hys_ok_factor=1.04; + const float hys_ok_factor = 1.04f; + const float hys_bad_factor = 1.2f; int hys_min_ok_count = GetClamped((int)(50.0 *(float)targetIPS/750.0), 2, 100); //consecutive iterations within hys_ok before going to 1:1 mode - const float hys_bad_factor=1.2; int compensationDivider = GetClamped((int)(100.0 *(float)targetIPS/750), 15, 150); float tempoAdjust=bufferFullness/dynamicTargetFullness;