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

Modified Files:
        ImportPCM.cpp 
Log Message:
Fixing bug where non-OD imports (create a copy before editing pref on) are 
noise for 24 bit int.


Index: ImportPCM.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/import/ImportPCM.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- ImportPCM.cpp       24 Aug 2009 17:26:00 -0000      1.53
+++ ImportPCM.cpp       4 Nov 2009 16:44:27 -0000       1.54
@@ -307,6 +307,7 @@
          
          if (mFormat == int16Sample)
             block = sf_readf_short(mFile, (short *)srcbuffer, block);
+         //import 24 bit int as float and have the append function convert it. 
 This is how PCMAliasBlockFile works too.
          else
             block = sf_readf_float(mFile, (float *)srcbuffer, block);
          
@@ -323,7 +324,7 @@
                         ((float *)srcbuffer)[mInfo.channels*j+c];
                }
                
-               channels[c]->Append(buffer, mFormat, block);
+               channels[c]->Append(buffer, (mFormat == 
int16Sample)?int16Sample:floatSample, block);
             }
             framescompleted += block;
          }


------------------------------------------------------------------------------
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