RustAudio / dsp-chain

A library for chaining together multiple audio dsp processors/generators, written in Rust!
MIT License
298 stars 20 forks source link

Return `I: Iterator<&DspNode>` rather than `Vec<&DspNode>` #52

Closed mitchmindtree closed 8 years ago

mitchmindtree commented 9 years ago

Referring to the get_inputs methods, this line in particular. This should still be generic enough so that people can store their DspNode types in unique ways and still easily define the get_inputs method for returning references to them. It should also be a lot faster as it means giving people the ability to write zero-allocation dsp chains! (rather than creating a new Vec for each Node's inputs every buffer).

One issue however would be requiring people to write out the elaborate Iterator return types, however this should be fixed once abstract return types arrives.

mitchmindtree commented 8 years ago

This is no longer relevant to the current API, closing.