remove functions that were moved to the timerange class
This commit is contained in:
@@ -84,9 +84,9 @@ void AudioRenderBackend::ValidateRanges()
|
||||
for (int j=0;j<cache_queue_.size();j++) {
|
||||
const TimeRange& range2 = cache_queue_.at(j);
|
||||
|
||||
if (RangesOverlap(range1, range2) && i != j) {
|
||||
if (TimeRange::Overlap(range1, range2) && i != j) {
|
||||
// Combine with the first range
|
||||
cache_queue_[i] = CombineRange(range1, range2);
|
||||
cache_queue_[i] = TimeRange::Combine(range1, range2);
|
||||
|
||||
// Remove the second range
|
||||
cache_queue_.removeAt(j);
|
||||
@@ -103,14 +103,3 @@ QString AudioRenderBackend::CachePathName()
|
||||
|
||||
return this_cache_dir.filePath(QStringLiteral("pcm"));
|
||||
}
|
||||
|
||||
TimeRange AudioRenderBackend::CombineRange(const TimeRange &a, const TimeRange &b)
|
||||
{
|
||||
return TimeRange(qMin(a.in(), b.in()),
|
||||
qMax(a.out(), b.out()));
|
||||
}
|
||||
|
||||
bool AudioRenderBackend::RangesOverlap(const TimeRange &a, const TimeRange &b)
|
||||
{
|
||||
return !(a.out() < b.in() || a.in() > b.out());
|
||||
}
|
||||
|
||||
@@ -42,10 +42,6 @@ protected:
|
||||
private:
|
||||
void ValidateRanges();
|
||||
|
||||
TimeRange CombineRange(const TimeRange& a, const TimeRange& b);
|
||||
|
||||
bool RangesOverlap(const TimeRange& a, const TimeRange& b);
|
||||
|
||||
AudioRenderingParams params_;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user