BillyDM / iced-baseplug-examples

Simple examples to demonstrate full-stack Rust audio plugin dev with baseplug and iced_audio
GNU General Public License v3.0
13 stars 1 forks source link

Doesn't compile #2

Closed Ploppz closed 3 years ago

Ploppz commented 3 years ago

I tried cargo +nightly build --package gain --release and got error:

error[E0046]: not all trait items implemented, missing: `ui_param_notify`
  --> gain/src/lib.rs:74:1
   |
74 | impl baseplug::PluginUI for Gain {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `ui_param_notify` in implementation
   |
   = help: implement the missing item: `fn ui_param_notify(_: &<Self as PluginUI>::Handle, _: &'static baseplug::Param<Self, <<Self as Plugin>::Model as Model<Self>>::Smooth>, _: f32) { todo!() }`

error[E0277]: the trait bound `RawWindowHandle: HasRawWindowHandle` is not satisfied
  --> gain/src/lib.rs:91:64
   |
91 |         iced_baseview::IcedWindow::<ui::GainUI>::open_parented(&parent, settings);
   |                                                                ^^^^^^^ the trait `HasRawWindowHandle` is not implemented for `RawWindowHandle`
   |
   = note: required by `IcedWindow::<A>::open_parented`

error: aborting due to 2 previous errors
BillyDM commented 3 years ago

fixed