audiowaveformcache: improve passthrough system

This commit is contained in:
itsmattkc
2022-09-27 21:17:37 -07:00
parent a29fa4bc4d
commit 149b1b3690
3 changed files with 80 additions and 107 deletions
+11
View File
@@ -126,6 +126,17 @@ public:
return false;
}
bool OverlapsWith(const TimeRange& r, bool in_inclusive = true, bool out_inclusive = true) const
{
for (const TimeRange &range : array_) {
if (range.OverlapsWith(r, in_inclusive, out_inclusive)) {
return true;
}
}
return false;
}
bool isEmpty() const
{
return array_.isEmpty();