Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::GraphRenderer Class Reference

Data Structures

struct  RenderOptions

Public Types

using SampleRange = std::pair<units::sample_t, units::sample_t>
using RunOnMainThread = std::function<void (std::function<void ()>)>

Static Public Member Functions

static QFuture< juce::AudioSampleBuffer > render_async (RenderOptions options, graph::GraphNodeCollection &&nodes, RunOnMainThread run_on_main_thread, SampleRange range)
 Executes render() asynchronously and returns a QFuture to control the task.

Detailed Description

Definition at line 15 of file graph_renderer.h.

Member Typedef Documentation

◆ RunOnMainThread

using zrythm::dsp::GraphRenderer::RunOnMainThread = std::function<void (std::function<void ()>)>

Definition at line 19 of file graph_renderer.h.

◆ SampleRange

using zrythm::dsp::GraphRenderer::SampleRange = std::pair<units::sample_t, units::sample_t>

Definition at line 18 of file graph_renderer.h.

Member Function Documentation

◆ render_async()

QFuture< juce::AudioSampleBuffer > zrythm::dsp::GraphRenderer::render_async ( RenderOptions options,
graph::GraphNodeCollection && nodes,
RunOnMainThread run_on_main_thread,
SampleRange range )
static

Executes render() asynchronously and returns a QFuture to control the task.

Parameters
options
nodes
range
run_on_main_threadUsed to invoke logic that needs to run on the main thread (like graph node prepare_for_processing, etc.).

The documentation for this class was generated from the following file: