If the nodes are now stateless, there's nothing stopping the renderer from rendering multiple frames at once. Earlier since the nodes held some of their input/output data (and that data could change per frame), it was not possible to render multiple frames at once without conflicts. Now that the node state is held in render threads, they can do whatever they want at any time.
14 lines
273 B
C++
14 lines
273 B
C++
#include "audioworker.h"
|
|
|
|
AudioWorker::AudioWorker(QObject *parent) :
|
|
AudioRenderWorker(parent)
|
|
{
|
|
}
|
|
|
|
void AudioWorker::FrameToValue(StreamPtr stream, FramePtr frame, NodeValueTable *table)
|
|
{
|
|
Q_UNUSED(stream)
|
|
|
|
table->Push(NodeParam::kSamples, frame->ToByteArray());
|
|
}
|