Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4513/src

Modified Files:
        Dither.cpp 
Log Message:
Abolish clipping of float values during dither processing, because this isn't 
desireable. Has the effect of making Micheal's EXPERIMENTAL_NOCLIP_FLOAT 
permanently on.


Index: Dither.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Dither.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Dither.cpp  2 Feb 2009 16:14:43 -0000       1.10
+++ Dither.cpp  7 Apr 2009 19:31:37 -0000       1.11
@@ -187,26 +187,6 @@
             }
         }
 
-        if (destFormat == floatSample)
-        {
-            // Only float samples can contain a value that
-            // must be clipped.
-            
-/* mchinen jan31 2009 commenting out because this introduces uneccessary 
clipping.
-  this change may cause problems when floats are converted to ints, or are 
assumed to be below 1.0/-1.0
-  afaik the only conversion that happens is here.
-*/  
-#ifndef EXPERIMENTAL_NOCLIP_FLOAT
-            float* p = (float*)dest;
-
-
-            for (i = 0; i < len; i++, p++)
-                if (*p > 1.0)
-                    *p = 1.0;
-                else if (*p < -1.0)
-                    *p = -1.0;
-#endif
-        }
     } else
     if (destFormat == floatSample)
     {


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to