Add a deactivation callback

This is the equivalent of initialize()
This commit is contained in:
Robbert van der Helm
2022-05-24 13:03:30 +02:00
parent 596b04af0a
commit f4f54029eb
6 changed files with 31 additions and 3 deletions

View File

@@ -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 {