waveforms: moved waveform to track rather than block

This is a much more robust and thread-safe system of storing the waveforms.
This commit is contained in:
itsmattkc
2020-06-04 18:03:21 +10:00
parent 9ff9817b95
commit 0e87762afa
19 changed files with 184 additions and 336 deletions
+13 -1
View File
@@ -45,7 +45,15 @@ public:
void SetViewerNode(ViewerOutput* viewer_node);
void SetUpdateWithGraph(bool e);
void SetUpdateWithGraph(bool e)
{
update_with_graph_ = e;
}
void SetGeneratePreviews(bool e)
{
generate_previews_ = e;
}
void ClearVideoQueue();
@@ -113,9 +121,13 @@ private:
bool update_with_graph_;
bool generate_previews_;
private slots:
void WorkerFinished();
void WorkerGeneratedWaveform(const OLIVE_NAMESPACE::TrackOutput* copied_track, const OLIVE_NAMESPACE::AudioVisualWaveform& samples, const OLIVE_NAMESPACE::rational& start);
};
OLIVE_NAMESPACE_EXIT