18{
20
22
23
24 int num = 0;
25 for (const auto clip : clips)
26 num += clip->NumCutLines();
27
28 if (num == 0)
29 return locations;
30
31
32 locations.reserve(num);
33
34
35 int curpos = 0;
36
37 for (const auto clip: clips) {
38 for (const auto &cc : clip->GetCutLines()) {
39 auto cutlinePosition =
40 clip->GetSequenceStartTime() + cc->GetSequenceStartTime();
41 if (clip->WithinPlayRegion(cutlinePosition)) {
42
43 locations.emplace_back(cutlinePosition);
44 }
45
46
47 curpos++;
48 }
49 }
50
51 assert(curpos == num);
52
53 return locations;
54}
std::vector< WaveTrackLocation > WaveTrackLocations
IntervalHolders SortedIntervalArray()
Return all WaveClips sorted by clip play start time.