nodes: implemented core of manual table value selection

This commit is contained in:
itsmattkc
2021-09-07 15:27:07 -07:00
parent a3ac761b55
commit a0706a78d8
71 changed files with 517 additions and 434 deletions
+2 -4
View File
@@ -542,7 +542,7 @@ QVariant RenderProcessor::ProcessSamples(const Node *node, const TimeRange &rang
}
SampleBufferPtr output_buffer = SampleBuffer::CreateAllocated(job.samples()->audio_params(), job.samples()->sample_count());
NodeValueDatabase value_db;
NodeValueRow value_db;
const AudioParams& audio_params = ticket_->property("aparam").value<AudioParams>();
@@ -556,11 +556,9 @@ QVariant RenderProcessor::ProcessSamples(const Node *node, const TimeRange &rang
for (auto j=job.GetValues().constBegin(); j!=job.GetValues().constEnd(); j++) {
NodeValueTable value = ProcessInput(node, j.key(), TimeRange(this_sample_time, this_sample_time));
value_db.Insert(j.key(), value);
value_db.insert(j.key(), GenerateRowValue(node, j.key(), &value));
}
AddGlobalsToDatabase(value_db, TimeRange(this_sample_time, this_sample_time));
node->ProcessSamples(value_db,
job.samples(),
output_buffer,