implemented core audio recording support

This commit is contained in:
itsmattkc
2022-05-02 14:00:03 -07:00
parent a34fb2145d
commit 9101f5dc49
33 changed files with 610 additions and 111 deletions
+5 -3
View File
@@ -30,9 +30,8 @@
namespace olive {
ProjectImportTask::ProjectImportTask(ProjectViewModel *model, Folder *folder, const QStringList &filenames) :
ProjectImportTask::ProjectImportTask(Folder *folder, const QStringList &filenames) :
command_(nullptr),
model_(model),
folder_(folder)
{
foreach (const QString& f, filenames) {
@@ -117,6 +116,9 @@ void ProjectImportTask::Import(Folder *folder, QFileInfoList import, int &counte
// Create undoable command that adds the items to the model
AddItemToFolder(folder, footage, parent_command);
// Add to vector
imported_footage_.push_back(footage);
} else {
// Add to list so we can tell the user about it later
invalid_files_.append(file_info.absoluteFilePath());
@@ -220,7 +222,7 @@ void ProjectImportTask::ValidateImageSequence(Footage *footage, QFileInfoList& i
void ProjectImportTask::AddItemToFolder(Folder *folder, Node *item, MultiUndoCommand *command)
{
// Create undoable command that adds the items to the model
Project* project = model_->project();
Project* project = folder->project();
NodeAddCommand* nac = new NodeAddCommand(project, item);
nac->PushToThread(project->thread());
+5 -3
View File
@@ -34,7 +34,7 @@ class ProjectImportTask : public Task
{
Q_OBJECT
public:
ProjectImportTask(ProjectViewModel* model, Folder* folder, const QStringList& filenames);
ProjectImportTask(Folder* folder, const QStringList& filenames);
const int& GetFileCount() const;
@@ -53,6 +53,8 @@ public:
return !invalid_files_.isEmpty();
}
const QVector<Footage*> &GetImportedFootage() const { return imported_footage_; }
protected:
virtual bool Run() override;
@@ -71,8 +73,6 @@ private:
MultiUndoCommand* command_;
ProjectViewModel* model_;
Folder* folder_;
QFileInfoList filenames_;
@@ -83,6 +83,8 @@ private:
QList<QString> image_sequence_ignore_files_;
QVector<Footage*> imported_footage_;
};
}