DspGraph

Trait DspGraph 

Source
pub trait DspGraph {
    type Params: Clone;

    // Required method
    fn build(params: &Self::Params) -> Vec<Node>;
}
Expand description

A pure graph-building function.

Implement this trait for each DSP topology. The engine handles mounting, parameter diffing, and runtime delegation. Keyed consts and native node props are discovered automatically from the graph — no manual declarations needed.

Required Associated Types§

Source

type Params: Clone

Parameter snapshot type (e.g., a struct with delay_ms, feedback, etc.).

Required Methods§

Source

fn build(params: &Self::Params) -> Vec<Node>

Build the graph from parameters. Returns output root nodes.

Called once at activation to mount the graph, and again on each set_params call to diff keyed consts and native props.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§