Create a separate InitContext

Only a couple of these functions would be needed during initialization.
In the next couple commits ProcessContext will get a way to access
auxiliary IO, so this really had to be separated.
This commit is contained in:
Robbert van der Helm
2022-05-27 01:17:15 +02:00
parent c555aff768
commit b2e6bd5515
22 changed files with 144 additions and 68 deletions

View File

@@ -315,7 +315,7 @@ impl Plugin for Crisp {
&mut self,
bus_config: &BusConfig,
buffer_config: &BufferConfig,
_context: &mut impl ProcessContext,
_context: &mut impl InitContext,
) -> bool {
nih_debug_assert_eq!(bus_config.num_input_channels, NUM_CHANNELS);
nih_debug_assert_eq!(bus_config.num_output_channels, NUM_CHANNELS);