1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-02 06:08:44 +01:00

Another TrackShifter method eliminates a use of capturedClipArray

This commit is contained in:
Paul Licameli
2020-09-12 18:57:59 -04:00
parent c98285c544
commit 3009bdde2c
3 changed files with 49 additions and 24 deletions

View File

@@ -1440,6 +1440,15 @@ public:
return true;
}
void DoHorizontalOffset( double offset ) override
{
for ( auto &interval : MovingIntervals() ) {
auto data =
static_cast<WaveTrack::IntervalData*>( interval.Extra() );
data->GetClip()->Offset( offset );
}
}
private:
std::shared_ptr<WaveTrack> mpTrack;