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

Modified Files:
        WaveClip.cpp WaveClip.h 
Log Message:
Recalculate the envelope length when setting the rate for the clip.

Index: WaveClip.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/WaveClip.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- WaveClip.h  6 Jul 2009 17:10:11 -0000       1.37
+++ WaveClip.h  22 Sep 2009 00:18:11 -0000      1.38
@@ -82,7 +82,7 @@
    int GetRate() const { return mRate; }
    
    // Set rate without resampling. This will change the length of the clip
-   void SetRate(int rate) { mRate = rate; MarkChanged(); }
+   void SetRate(int rate);
    
    // Resample clip. This also will set the rate, but without changing
    // the length of the clip

Index: WaveClip.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/WaveClip.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- WaveClip.cpp        9 Jul 2009 02:44:01 -0000       1.54
+++ WaveClip.cpp        22 Sep 2009 00:18:11 -0000      1.55
@@ -1477,6 +1477,13 @@
       it->GetData()->Unlock();
 }
 
+void WaveClip::SetRate(int rate)
+{
+   mRate = rate;
+   UpdateEnvelopeTrackLen();
+   MarkChanged();
+}
+
 bool WaveClip::Resample(int rate, ProgressDialog *progress)
 {
    if (rate == mRate)


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to