RustAudio / vst-rs

VST 2.4 API implementation in rust. Create plugins or hosts. Previously rust-vst on the RustDSP group.
MIT License
1.04k stars 91 forks source link

Any idea how to improve the LOAD_POINTER hack situation? #44

Open Boscop opened 6 years ago

Boscop commented 6 years ago

Not a real problem (unless the same plugin dll is loaded into different hosts at the same time) but if you have an idea how to do it better, we should improve this: https://github.com/rust-dsp/rust-vst/blob/04258d15fa49e0aec5d38bcbe1839a635aeed7f4/src/host.rs#L710-L755

Phosphorus15 commented 5 years ago

Maybe consider using the Closure unpacking technique to pass the host pointer. 🎉