mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add a deactivation callback
This is the equivalent of initialize()
This commit is contained in:
@@ -145,6 +145,10 @@ impl Plugin for Gain {
|
||||
|
||||
ProcessStatus::Normal
|
||||
}
|
||||
|
||||
// This can be used for cleaning up special resources like socket connections whenever the
|
||||
// plugin is deactivated. Most plugins won't need to do anything here.
|
||||
fn deactivate(&mut self) {}
|
||||
}
|
||||
|
||||
impl ClapPlugin for Gain {
|
||||
|
||||
Reference in New Issue
Block a user