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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user