From 052eaa9a5e1f23ea8887f769e3347b621eae0a6c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 27 Jan 2007 08:34:55 +0000 Subject: [PATCH] don't clip or round incoming data prematurely --- stepmania/src/RageSoundReader_MP3.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/stepmania/src/RageSoundReader_MP3.cpp b/stepmania/src/RageSoundReader_MP3.cpp index 322a6962c8..de6ff0c9a0 100644 --- a/stepmania/src/RageSoundReader_MP3.cpp +++ b/stepmania/src/RageSoundReader_MP3.cpp @@ -271,15 +271,6 @@ struct madlib_t static float scale(mad_fixed_t sample) { - /* round */ - sample += (1L << (MAD_F_FRACBITS - 16)); - - /* clip */ - if (sample >= MAD_F_ONE) - sample = MAD_F_ONE - 1; - else if (sample < -MAD_F_ONE) - sample = -MAD_F_ONE; - return (double) sample / (1<