51 for (
unsigned int i = 0; i < num_samples; ++i) {
54 return std::vector<double>(num_samples, 0.0);
virtual void compute_frame()=0
Compute GPU data for this frame.
~GpuSync() override=default
virtual bool needs_gpu_update() const =0
Mark if this node needs GPU binding update.
void notify_tick(double) override
GPU sync nodes don't emit tick callbacks.
virtual void clear_gpu_update_flag()=0
Clear the "needs update" flag after GPU binding.
double process_sample(double) override
Single sample processing hook.
std::unique_ptr< NodeContext > create_context(double) override
GPU sync nodes don't produce scalar contexts.
std::vector< double > process_batch(unsigned int num_samples) override
Batch processing for GPU nodes.
Base interface for all computational processing nodes.