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

Modified Files:
        ControlToolBar.cpp 
Log Message:
Corrects issue where tracks start before 0.0 and "Select All" is used...no able 
to play the selected region

Index: ControlToolBar.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/toolbars/ControlToolBar.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- ControlToolBar.cpp  25 May 2007 05:05:58 -0000      1.14
+++ ControlToolBar.cpp  27 May 2007 09:06:11 -0000      1.15
@@ -485,6 +485,11 @@
             t1 = minofmaxs;
          }
       }
+
+      // Can't play before 0...either shifted or latencey corrected tracks
+      if (t0 < 0.0) {
+         t0 = 0.0;
+      }
       
       bool success = false;
       if (t1 > t0) {
@@ -568,10 +573,9 @@
       double playRegionStart, playRegionEnd;
       p->GetPlayRegion(&playRegionStart, &playRegionEnd);
          
-      if (playRegionStart >= 0)
-         PlayPlayRegion(playRegionStart,
-                        playRegionEnd,
-                        looped, cutpreview);
+      PlayPlayRegion(playRegionStart,
+                     playRegionEnd,
+                     looped, cutpreview);
    }
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to