Update of /cvsroot/audacity/audacity-src/src/import
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv20801

Modified Files:
        ImportFLAC.cpp 
Log Message:
Fix importing 16-bit FLACs



Index: ImportFLAC.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/import/ImportFLAC.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- ImportFLAC.cpp      20 Nov 2006 19:12:37 -0000      1.17
+++ ImportFLAC.cpp      12 Jan 2007 19:44:10 -0000      1.18
@@ -183,7 +183,7 @@
    short *tmp=new short[frame->header.blocksize];
 
    for (unsigned int chn=0; chn<mFile->mNumChannels; chn++) {
-      if (mFile->mFormat == int16Sample) {
+      if (frame->header.bits_per_sample == 16) {
          for (unsigned int s=0; s<frame->header.blocksize; s++) {
             tmp[s]=buffer[chn][s];
          }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to