1
0
Fork 0
nih-plug/nih_plug_vizia
Robbert van der Helm 083885a40c Rework Params trait API with Arc instead of Pin
This is a breaking change requiring a small change to plugin
implementations.

The reason why `Pin<&dyn Params>` was used was more as a hint to
indicate that the object must last for the plugin's lifetime, but `Pin`
doesn't enforce that. It also makes the APIs a lot more awkward.
Requiring the use of `Arc` fixes the following problems:

- When storing the params object in the wrapper, the `ParamPtr`s are
  guaranteed to be stable.
- This makes it possible to access the `Params` object without acquiring
  a lock on the plugin, this is very important for implementing
  plugin-side preset management.
- It enforces immutability on the `Params` object.
- And of course the API is much nicer without a bunch of unsafe code to
  work around Pin's limitations.
2022-04-07 15:31:46 +02:00
..
assets Fix non-hover active styling for resize handle 2022-03-29 16:59:46 +02:00
src Rework Params trait API with Arc instead of Pin 2022-04-07 15:31:46 +02:00
Cargo.toml Add a way to rescale and resize the UI from VIZIA 2022-03-27 23:09:47 +02:00
README.md Add a basic adapter for vizia 2022-03-17 23:14:45 +01:00

NIH-plug: VIZIA support

This provides an adapter to create VIZIA based GUIs with NIH-plug.