1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Ignore the time track during overdub recording.

This commit is contained in:
Paul Licameli
2018-05-17 15:49:53 -04:00
parent 4221549ec9
commit 1269fff8e1

View File

@@ -1921,7 +1921,18 @@ int AudioIO::StartStream(const WaveTrackConstArray &playbackTracks,
}
mSilenceLevel = (silenceLevelDB + dBRange)/(double)dBRange; // meter goes -dBRange dB -> 0dB
mTimeTrack = options.timeTrack;
if ( !captureTracks.empty() ) {
// It does not make sense to apply the time warp during overdub recording,
// which defeats the purpose of making the recording synchronized with
// the existing audio. (Unless we figured out the inverse warp of the
// captured samples in real time.)
// So just quietly ignore the time track.
mTimeTrack = nullptr;
}
else {
mTimeTrack = options.timeTrack;
}
mListener = options.listener;
mRate = sampleRate;
mT0 = t0;