mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-17 22:21:17 +01:00
Move many fields out of Envelope that are needed only during editing
This commit is contained in:
committed by
Paul Licameli
parent
3c4a15f5cb
commit
0af9b46eac
@@ -2228,18 +2228,6 @@ Envelope* WaveTrack::GetEnvelopeAtX(int xcoord)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Search for any active DragPoint on the current track
|
||||
Envelope* WaveTrack::GetActiveEnvelope(void)
|
||||
{
|
||||
for (const auto &clip : mClips)
|
||||
{
|
||||
Envelope* env = clip->GetEnvelope() ;
|
||||
if (env->GetDragPoint() >= 0)
|
||||
return env;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Sequence* WaveTrack::GetSequenceAtX(int xcoord)
|
||||
{
|
||||
WaveClip* clip = GetClipAtX(xcoord);
|
||||
|
||||
Reference in New Issue
Block a user