pub unsafe fn process_audio<D: PluginDsp>(
handle: *mut BbxGraph,
inputs: *const *const f32,
outputs: *mut *mut f32,
num_channels: u32,
num_samples: u32,
params: *const f32,
num_params: u32,
midi_events: *const MidiEvent,
num_midi_events: u32,
)Expand description
Process a block of audio through the effects chain.
This function is called by the macro-generated bbx_graph_process FFI function.
It uses zero-copy buffer handling for optimal performance.
ยงSafety
handlemust be a valid pointer frombbx_graph_create.inputsmust be a valid pointer to an array ofnum_channelspointers, or null.outputsmust be a valid pointer to an array ofnum_channelspointers.- Each input/output channel pointer must be valid for
num_samplesfloats. paramsmust be valid fornum_paramsfloats, or null.midi_eventsmust be valid fornum_midi_eventsMidiEvent structs, or null.