Suggest copying {Bus,Buffer}Config as needed
This commit is contained in:
parent
783dc2245e
commit
937842d2c5
|
@ -80,12 +80,14 @@ pub trait Plugin: Default + Send + Sync + 'static {
|
||||||
&& config.num_output_channels == Self::DEFAULT_NUM_OUTPUTS
|
&& config.num_output_channels == Self::DEFAULT_NUM_OUTPUTS
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initialize the plugin for the given bus and buffer configurations. If the plugin is being
|
/// Initialize the plugin for the given bus and buffer configurations. These configurations will
|
||||||
/// restored from an old state, then that state will have already been restored at this point.
|
/// not change until this function is called again, so feel free to copy these objects to your
|
||||||
/// If based on those parameters (or for any reason whatsoever) the plugin needs to introduce
|
/// plugin's object. If the plugin is being restored from an old state, then that state will
|
||||||
/// latency, then you can do so here using the process context. Depending on how the host
|
/// have already been restored at this point. If based on those parameters (or for any reason
|
||||||
/// restores plugin state, this function may also be called twice in rapid succession. If the
|
/// whatsoever) the plugin needs to introduce latency, then you can do so here using the process
|
||||||
/// plugin fails to inialize for whatever reason, then this should return `false`.
|
/// context. Depending on how the host restores plugin state, this function may also be called
|
||||||
|
/// twice in rapid succession. If the plugin fails to inialize for whatever reason, then this
|
||||||
|
/// should return `false`.
|
||||||
///
|
///
|
||||||
/// Before this point, the plugin should not have done any expensive initialization. Please
|
/// Before this point, the plugin should not have done any expensive initialization. Please
|
||||||
/// don't be that plugin that takes twenty seconds to scan.
|
/// don't be that plugin that takes twenty seconds to scan.
|
||||||
|
|
Loading…
Reference in a new issue