RustAudio / rust-lv2

A safe, fast, and modular framework to create LV2 plugins, written in Rust
Apache License 2.0
171 stars 23 forks source link

Add sample_count to Plugin run method #88

Closed niclashoyer closed 4 years ago

niclashoyer commented 4 years ago

This adds sample_count to the Plugin trait. This is necessary if the plugin needs to be correct regarding samples/frames, but has no audio port and no direct access to the number of frames (e.g. a sequencing plugin which has just midi ports, but needs to emit events at exact frames).

See also #87 for discussion.