macro_rules! bbx_plugin_ffi {
($dsp_type:ty) => { ... };
}Expand description
Generate C FFI exports for a PluginDsp implementation.
This macro generates the following FFI functions:
bbx_graph_create()- Create a new DSP graphbbx_graph_destroy()- Destroy a DSP graphbbx_graph_prepare()- Prepare for playbackbbx_graph_reset()- Reset DSP statebbx_graph_process()- Process audio
§Example
ⓘ
use bbx_dsp::PluginDsp;
use bbx_ffi::bbx_plugin_ffi;
pub struct PluginGraph { /* ... */ }
impl PluginDsp for PluginGraph { /* ... */ }
// Generate all FFI exports
bbx_plugin_ffi!(PluginGraph);