implement entire project in nodes
Project items are now represented directly in nodes opening up more versatility and possibilities. This is the first iteration of this and will be buggy. Need to test thoroughly.
This commit is contained in:
@@ -24,11 +24,12 @@
|
||||
|
||||
namespace olive {
|
||||
|
||||
ConformTask::ConformTask(AudioStream *stream, const AudioParams& params) :
|
||||
stream_(stream),
|
||||
ConformTask::ConformTask(Footage* footage, int index, const AudioParams& params) :
|
||||
footage_(footage),
|
||||
index_(index),
|
||||
params_(params)
|
||||
{
|
||||
SetTitle(tr("Conforming Audio %1:%2").arg(stream_->footage()->filename(), QString::number(stream_->index())));
|
||||
SetTitle(tr("Conforming Audio %1:%2").arg(footage_->filename(), QString::number(index_)));
|
||||
}
|
||||
|
||||
bool ConformTask::Run()
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#ifndef CONFORMTASK_H
|
||||
#define CONFORMTASK_H
|
||||
|
||||
#include "project/item/footage/audiostream.h"
|
||||
#include "project/item/footage/footage.h"
|
||||
#include "render/audioparams.h"
|
||||
#include "task/task.h"
|
||||
|
||||
@@ -31,13 +31,15 @@ class ConformTask : public Task
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ConformTask(AudioStream* stream, const AudioParams& params);
|
||||
ConformTask(Footage* stream, int index, const AudioParams& params);
|
||||
|
||||
protected:
|
||||
virtual bool Run() override;
|
||||
|
||||
private:
|
||||
AudioStream* stream_;
|
||||
Footage* footage_;
|
||||
|
||||
int index_;
|
||||
|
||||
AudioParams params_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user