1
0
Fork 0

Add missing reset call to standalone init

The plugin versions also do this, and the docs mention that this always
happens.
This commit is contained in:
Robbert van der Helm 2022-09-07 18:23:36 +02:00
parent 997249a293
commit 591f3710bd

View file

@ -23,6 +23,7 @@ use crate::plugin::{
};
use crate::util::permit_alloc;
use crate::wrapper::state::{self, PluginState};
use crate::wrapper::util::process_wrapper;
/// How many parameter changes we can store in our unprocessed parameter change queue. Storing more
/// than this many parameters at a time will cause changes to get lost.
@ -228,6 +229,7 @@ impl<P: Plugin, B: Backend> Wrapper<P, B> {
) {
return Err(WrapperError::InitializationFailed);
}
process_wrapper(|| plugin.reset());
}
Ok(wrapper)