1
0
Fork 0

Require a Default instance on plugins

Since that's how they're going to be initialized
This commit is contained in:
Robbert van der Helm 2022-01-25 22:38:34 +01:00
parent 5d0fbcd60d
commit fba92cd333

View file

@ -34,7 +34,7 @@ use crate::params::Params;
/// - Parameter hierarchies/groups
/// - Outputting parameter changes from the plugin
/// - GUIs
pub trait Plugin: Sync {
pub trait Plugin: Default + Sync {
/// The default number of inputs. Some hosts like, like Bitwig and Ardour, use the defaults
/// instead of setting up the busses properly.
const DEFAULT_NUM_INPUTS: u32;