foundations for background caching

This commit is contained in:
itsmattkc
2019-08-24 22:16:01 +10:00
parent 9439494c10
commit 438e7081f9
39 changed files with 919 additions and 213 deletions
+10 -3
View File
@@ -162,6 +162,15 @@ void TimelineOutput::DetachTrack(TrackOutput *track)
}
}
void TimelineOutput::SetTimebase(const rational &timebase)
{
timebase_ = timebase;
if (attached_timeline_ != nullptr) {
attached_timeline_->SetTimebase(timebase_);
}
}
void TimelineOutput::AddTrack()
{
TrackOutput* track = new TrackOutput();
@@ -182,11 +191,9 @@ void TimelineOutput::TrackConnectionAdded(NodeEdgePtr edge)
AttachTrack(attached_track());
// FIXME: TEST CODE ONLY
if (attached_timeline_ != nullptr) {
attached_timeline_->SetTimebase(rational(1001, 30000));
attached_timeline_->SetTimebase(timebase_);
}
// END TEST CODE
}
void TimelineOutput::TrackConnectionRemoved(NodeEdgePtr edge)