mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Rewrite GetLink(ed) in SoundTouch
This commit is contained in:
parent
518df314eb
commit
48ae1eb3c9
@ -120,10 +120,10 @@ bool EffectSoundTouch::ProcessWithTimeWarper(const TimeWarper &warper)
|
|||||||
// Process only if the right marker is to the right of the left marker
|
// Process only if the right marker is to the right of the left marker
|
||||||
if (mCurT1 > mCurT0) {
|
if (mCurT1 > mCurT0) {
|
||||||
|
|
||||||
if (leftTrack->GetLinked()) {
|
// TODO: more-than-two-channels
|
||||||
|
auto channels = TrackList::Channels(leftTrack);
|
||||||
|
if (auto rightTrack = * ++ channels.begin()) {
|
||||||
double t;
|
double t;
|
||||||
// Assume linked track is wave
|
|
||||||
WaveTrack* rightTrack = static_cast<WaveTrack*>(leftTrack->GetLink());
|
|
||||||
|
|
||||||
//Adjust bounds by the right tracks markers
|
//Adjust bounds by the right tracks markers
|
||||||
t = rightTrack->GetStartTime();
|
t = rightTrack->GetStartTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user