MCPcopy Create free account
hub / github.com/audacity/audacity / CondListAdd

Method CondListAdd

libraries/lib-snapping/Snap.cpp:115–121  ·  view source on GitHub ↗

Adds to mSnapPoints, filtering by TimeConverter

Source from the content-addressed store, hash-verified

113
114// Adds to mSnapPoints, filtering by TimeConverter
115void SnapManager::CondListAdd(double t, const Track *track)
116{
117 if (!mSnapToTime || ProjectSnap::Get(*mProject).SnapTime(t).time == t)
118 {
119 mSnapPoints.push_back(SnapPoint { t, track });
120 }
121}
122
123// Return the time of the SnapPoint at a given index
124double SnapManager::Get(size_t index)

Callers

nothing calls this directly

Calls 3

GetFunction · 0.85
SnapTimeMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected