diff --git a/src/effects/SoundTouchEffect.cpp b/src/effects/SoundTouchEffect.cpp index dd77863c9..dba8b3e83 100644 --- a/src/effects/SoundTouchEffect.cpp +++ b/src/effects/SoundTouchEffect.cpp @@ -120,10 +120,10 @@ bool EffectSoundTouch::ProcessWithTimeWarper(const TimeWarper &warper) // Process only if the right marker is to the right of the left marker if (mCurT1 > mCurT0) { - if (leftTrack->GetLinked()) { + // TODO: more-than-two-channels + auto channels = TrackList::Channels(leftTrack); + if (auto rightTrack = * ++ channels.begin()) { double t; - // Assume linked track is wave - WaveTrack* rightTrack = static_cast(leftTrack->GetLink()); //Adjust bounds by the right tracks markers t = rightTrack->GetStartTime();