Macro bbx_plugin_ffi

Source
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 graph
  • bbx_graph_destroy() - Destroy a DSP graph
  • bbx_graph_prepare() - Prepare for playback
  • bbx_graph_reset() - Reset DSP state
  • bbx_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);