WeirdConstructor / HexoSynth

A FLOSS (Open Source) hexagonal modular synthesizer plugin.
GNU General Public License v3.0
218 stars 9 forks source link

Documentation and DspNode trait #2

Closed Hasenn closed 3 years ago

Hasenn commented 3 years ago

this pr

pub trait DspNode {
    /// number of outputs this node supports
    fn outputs() -> usize;

    fn set_sample_rate(&mut self, _srate: f32);

    fn reset(&mut self);

    fn process<T: NodeAudioContext>(
        &mut self, ctx: &mut T, _atoms: &[SAtom], _params: &[ProcBuf],
        inputs: &[ProcBuf], outputs: &mut [ProcBuf]);
}