From 61992550102a7ff9c7b5c6b78b831ab880fc6342 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 21 Apr 2003 07:22:18 +0000 Subject: [PATCH] fix rounding error causing .9 to actually play at .8 --- stepmania/src/RageSound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 73612e40ea..59593ef8e9 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -704,7 +704,7 @@ void RageSound::SetPlaybackRate( float NewSpeed ) speed_input_samples = 1; speed_output_samples = 1; } else { /* Approximate it to the nearest tenth. */ - speed_input_samples = int(NewSpeed * 10); + speed_input_samples = int(roundf(NewSpeed * 10)); speed_output_samples = 10; } }