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

Modified Files:
        Mix.cpp 
Log Message:
Leland's idea was better (ie, correct!)

Index: Mix.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Mix.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- Mix.cpp     1 Oct 2006 18:35:59 -0000       1.59
+++ Mix.cpp     1 Oct 2006 18:45:48 -0000       1.60
@@ -492,8 +492,9 @@
       if (out > maxOut)
          maxOut = out;
    }
+   out = mInterleaved ? maxOut * mNumChannels : maxOut;
    for(int c=0; c<mNumBuffers; c++)
-      CopySamples(mTemp[c], floatSample, mBuffer[c], mFormat, 
out*mNumChannels);
+      CopySamples(mTemp[c], floatSample, mBuffer[c], mFormat, out);
 
    mT += (maxOut / mRate);
 


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