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:
@@ -73,6 +73,11 @@ public:
|
||||
copy_map_ = copy_map;
|
||||
}
|
||||
|
||||
void SetGeneratePreviews(bool e)
|
||||
{
|
||||
generate_previews_ = e;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return a unique ID for the image generated at this time
|
||||
*
|
||||
@@ -127,6 +132,8 @@ signals:
|
||||
|
||||
void FinishedJob();
|
||||
|
||||
void WaveformGenerated(const OLIVE_NAMESPACE::TrackOutput* track, const OLIVE_NAMESPACE::AudioVisualWaveform& samples, const OLIVE_NAMESPACE::rational& start);
|
||||
|
||||
private:
|
||||
NodeValue GetDataFromStream(StreamPtr stream, const TimeRange& input_time);
|
||||
|
||||
@@ -157,6 +164,8 @@ private:
|
||||
|
||||
bool audio_mode_is_preview_;
|
||||
|
||||
bool generate_previews_;
|
||||
|
||||
QHash<Node*, Node*>* copy_map_;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user