Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv8794
Modified Files:
AudioIO.cpp
Log Message:
Revert direction of latency correction to previous state
Index: AudioIO.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudioIO.cpp,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- AudioIO.cpp 26 Sep 2007 23:09:04 -0000 1.167
+++ AudioIO.cpp 27 Sep 2007 17:57:20 -0000 1.168
@@ -1183,20 +1183,7 @@
if( mCaptureTracks.GetCount() > 0 )
{
//
- // Note: Latency correction > 0 means there is more latency than
- // expected. This means, more recorded audio must be thrown away
- // to get it in sync with played back audio. Latency correction < 0
- // means there is less latency than expected, this means, less
- // recorded audio must be thrown away to get it in sync with played
- // back audio.
- //
- // We also allow for the case of total latency being below zero, i.e.
- // a negative latency. In this case, silence is inserted into the
- // recorded track to bring it in sync with played back audio.
- // However, it is unclear if there ever would be a technical reason
- // for a negative latency.
- //
- // We also only apply latency correction when we actually played back
+ // We only apply latency correction when we actually played back
// tracks during the recording. If we did not play back tracks,
// there's nothing we could be out of sync with. This also covers the
// case that we do not apply latency correction when recording the
@@ -1206,7 +1193,7 @@
gPrefs->Read(wxT("/AudioIO/LatencyCorrection"), &latencyCorrection);
double recordingOffset =
- mLastRecordingOffset - latencyCorrection / 1000.0;
+ mLastRecordingOffset + latencyCorrection / 1000.0;
for( unsigned int i = 0; i < mCaptureTracks.GetCount(); i++ )
{
-------------------------------------------------------------------------
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