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 32 of file WaveClipTrimHandle.cpp.

32 {
33 std::vector<std::shared_ptr<WaveClip>> result;
34 for (auto channel : TrackList::Channels(track))
35 {
36 for (auto& clip : channel->GetClips())
37 {
38 if (clip->GetPlayStartTime() == start && clip->GetPlayEndTime() == end)
39 result.push_back(clip);
40 }
41 }
42 return result;
43 }
static auto Channels(TrackType *pTrack) -> TrackIterRange< TrackType >
Definition: Track.h:1217
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: