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

Modified Files:
        AudioIO.cpp 
Log Message:
Fix incorrect parameter in AudioIO::GetBestRate()


Index: AudioIO.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudioIO.cpp,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -d -r1.232 -r1.233
--- AudioIO.cpp 8 Nov 2009 05:18:41 -0000       1.232
+++ AudioIO.cpp 10 Nov 2009 19:59:50 -0000      1.233
@@ -1645,12 +1645,12 @@
    if (capturing && !playing) {
       rates = GetSupportedCaptureRates(-1, sampleRate);
    }
-   if (playing && !capturing) {
+   else if (playing && !capturing) {
       rates = GetSupportedPlaybackRates(-1, sampleRate);
    }
    else {   // we assume capturing and playing - the alternative would be a 
             // bit odd
-      rates = GetSupportedSampleRates(-1, sampleRate);
+      rates = GetSupportedSampleRates(-1, -1, sampleRate);
    }
    /* rem rates is the array of hardware-supported sample rates (in the current
     * configuration), sampleRate is the Project Rate (desired sample rate) */


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