nodes: resolve audio jobs in the old way for now

This commit is contained in:
itsmattkc
2022-09-24 18:50:17 -07:00
parent c0d8ff403f
commit 6ce920c5c8
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -61,7 +61,15 @@ NodeValueRow NodeTraverser::GenerateRow(NodeValueDatabase *database, const Node
row.insert(it.key(), value);
}
//PreProcessRow(row);
// TEMP: Audio needs to be refactored to work with new job system. But refactoring hasn't been
// done yet, so we emulate old behavior here JUST FOR AUDIO.
for (auto it=row.begin(); it!=row.end(); it++) {
NodeValue &val = it.value();
if (val.type() == NodeValue::kSamples) {
ResolveJobs(val);
}
}
// END TEMP
return row;
}
+1
View File
@@ -137,6 +137,7 @@ protected:
void SetCancelPointer(CancelAtom *cancel) { cancel_ = cancel; }
void ResolveJobs(NodeValue &value);
void ResolveAudioJobs(NodeValue &value);
Block *GetCurrentBlock() const
{