Skip to main content

Module dev_audio_ffi

Module dev_audio_ffi 

Source
Expand description

C-ABI FFI contract for dev-mode audio processing.

This module defines the shared interface between the wavecraft_plugin! macro (which generates FFI exports in the user’s cdylib) and the CLI consumer (wavecraft start) that loads and calls them.

§Design Principles

  • #[repr(C)] struct with extern "C" function pointers for ABI stability
  • *mut c_void instance pointers for type erasure across the dylib boundary
  • Version field for forward-compatible ABI evolution
  • All memory alloc/dealloc stays inside the dylib (no cross-allocator issues)

Structs§

DevProcessorVTable
C-ABI stable vtable for dev-mode audio processing.

Constants§

DEV_PROCESSOR_SYMBOL
FFI symbol name exported by wavecraft_plugin! macro.
DEV_PROCESSOR_VTABLE_VERSION
Current vtable version. Increment on breaking changes.