pub trait AudioProcessor {
// Required method
fn process(&mut self, input: &AudioBuf, output: &AudioBuf);
}Expand description
Trait for implementing custom audio processing nodes.
All FFI bridging is handled by the binding layer — implement this
trait on a plain Rust struct with no unsafe or extern "C".
§Example
ⓘ
struct MyProcessor { ... }
impl ove::audio::AudioProcessor for MyProcessor {
fn process(&mut self, input: &AudioBuf, output: &AudioBuf) {
let src = input.data_s16();
let dst = output.data_s16_mut();
dst.copy_from_slice(src); // passthrough
}
}