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

Modified Files:
        Effect.cpp 
Log Message:
Only wait for the amount time we have samples for.  This is a temporary fix 
until preview start/stop is added.

Index: Effect.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Effect.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- Effect.cpp  8 Aug 2006 06:03:50 -0000       1.39
+++ Effect.cpp  28 Mar 2007 06:41:50 -0000      1.40
@@ -316,9 +316,10 @@
    int token =
       gAudioIO->StartStream(playbackTracks, recordingTracks, NULL,
                             rate, t0, t1, NULL);
+
    if (token) {
       wxBusyCursor busy;
-      ::wxMilliSleep((int)(previewLen*1000));
+      ::wxMilliSleep((int)((t1-t0)*1000));
 
       while(gAudioIO->IsStreamActive(token)) {
          ::wxMilliSleep(100);


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