Audacity 3.2.0
Functions
anonymous_namespace{WaveClipTrimHandle.cpp} Namespace Reference

Functions

std::vector< std::shared_ptr< WaveClip > > FindClipsInChannels (double start, double end, WaveTrack *track)
 

Detailed Description


Audacity: A Digital Audio Editor

WaveClipTrimHandle.cpp

Vitaly Sverchinsky

Function Documentation

◆ FindClipsInChannels()

std::vector< std::shared_ptr< WaveClip > > anonymous_namespace{WaveClipTrimHandle.cpp}::FindClipsInChannels ( double  start,
double  end,
WaveTrack track 
)

Definition at line 31 of file WaveClipTrimHandle.cpp.

31 {
32 std::vector<std::shared_ptr<WaveClip>> result;
33 for (auto channel : TrackList::Channels(track))
34 {
35 for (auto& clip : channel->GetClips())
36 {
37 if (clip->GetPlayStartTime() == start && clip->GetPlayEndTime() == end)
38 result.push_back(clip);
39 }
40 }
41 return result;
42 }
static auto Channels(TrackType *pTrack) -> TrackIterRange< TrackType >
Definition: Track.h:1544
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
Definition: PackedArray.h:159

References TrackList::Channels(), and PackedArray::end().

Referenced by WaveClipTrimHandle::AdjustBetweenBorders::AdjustBetweenBorders(), and WaveClipTrimHandle::AdjustBorder::AdjustBorder().

Here is the call graph for this function:
Here is the caller graph for this function: