shizen_buffers/lib.rs
1pub mod audio;
2pub mod midi;
3
4/// A marker trait for [`AudioBuffer<CH>`](`audio::AudioBuffer`) and [`MidiBuffer`](`midi::MidiBuffer`).
5// I should make this private
6pub trait Buffer {}
7
8pub trait Plugin {
9 type InputBuffer: Buffer;
10 type OutputBuffer: Buffer;
11
12 // check with rak about iterator logic
13 // + check plugin_main! macro from that lib
14 //
15 // im using this as a contract for generating the plugin?
16 fn process(buffer: Self::InputBuffer) -> Self::OutputBuffer;
17}