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

Modified Files:
        AudioIO.cpp 
Log Message:
Don't delete audio that is shifted before zero by latency correction, just 
shift the track.

Index: AudioIO.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudioIO.cpp,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- AudioIO.cpp 18 Sep 2007 07:20:33 -0000      1.165
+++ AudioIO.cpp 26 Sep 2007 22:57:38 -0000      1.166
@@ -1217,10 +1217,18 @@
                
                if (mPlaybackTracks.GetCount() > 0)
                {
-                  if (recordingOffset < 0)
+                  track->SetOffset(recordingOffset);
+                  if(track->GetEndTime() < 0.)
+                  {
+                     wxMessageDialog m(NULL, _("Latency setting has caused the 
recorded audio to be hidden before zero.\nI have brought it back to start at 
zero.\nYou may have to use the Time Shift Tool (<---> or F5) to drag the track 
to the right place."), _("Latency problem"), wxOK);
+                     m.ShowModal();
+                     track->SetOffset(0.);
+                  }
+
+/*                  if (recordingOffset < 0)
                      track->Clear(0, -recordingOffset);
                   else
-                     track->InsertSilence(0, recordingOffset);
+                     track->InsertSilence(0, recordingOffset);*/
                }
             }
          


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to