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

Modified Files:
        ImportPCM.cpp 
Log Message:
fixing p2 wrong min/max for amplify for OD; replacing a hardcoded literal with 
a #define which determines min length to use OD blockfiles versus regular alias 
blockfiles)

Index: ImportPCM.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/import/ImportPCM.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- ImportPCM.cpp       5 Apr 2009 22:52:25 -0000       1.52
+++ ImportPCM.cpp       24 Aug 2009 17:26:00 -0000      1.53
@@ -41,6 +41,10 @@
 #include "../ondemand/ODComputeSummaryTask.h"
 //temporarilly commented out till it is added to all projects
 //#include "../Profiler.h"
+//the minimum number of samples a file has to use the OD compute summary task
+//Otherwise, we use the older PCMAliasBlockFile method since it should be 
instant  enough
+//and the overhead of starting the thread might be slower.
+#define kMinimumODFileSampleSize 44100*30
 
 #ifndef SNDFILE_1
 #error Requires libsndfile 1.0 or higher
@@ -247,7 +251,7 @@
       
       // lets use OD only if the file is longer than 30 seconds.  Otherwise, 
why wake up extra threads.
       //todo: make this a user pref.
-      bool useOD =fileTotalFrames>44100*30;
+      bool useOD =fileTotalFrames>kMinimumODFileSampleSize;
       
       for (sampleCount i = 0; i < fileTotalFrames; i += maxBlockSize) {
          


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to