pub fn prepare(&mut self, audio_settings: &AudioProcessorSettings) {
        self.audio_settings = *audio_settings;

        let num_channels = audio_settings.input_channels();
        let buffer_size = audio_settings.block_size();

        self.input_buffer = Self::allocate_buffer(num_channels, buffer_size);
        self.output_buffer = Self::allocate_buffer(num_channels, buffer_size);
        self.host_buffer = vst::host::HostBuffer::new(num_channels, num_channels);
    }
/// Prepare the handler given changed audio settings
Prepare the handler given changed audio settings
Prepare the handler given changed audio settings
pub fn prepare(&mut self, audio_settings: &AudioProcessorSettings) {
        self.audio_settings = *audio_settings;
        let num_channels = audio_settings.input_channels();
        let buffer_size = audio_settings.block_size();
        self.input_buffer = Self::allocate_buffer(num_channels, buffer_size);
        self.output_buffer = Self::allocate_buffer(num_channels, buffer_size);
        self.host_buffer = vst::host::HostBuffer::new(num_channels, num_channels);
    }
pub fn prepare ( & mut self , audio_settings : & AudioProcessorSettings ) { self . audio_settings = * audio_settings ; let num_channels = audio_settings . input_channels ( ) ; let buffer_size = audio_settings . block_size ( ) ; self . input_buffer = Self :: allocate_buffer ( num_channels , buffer_size ) ; self . output_buffer = Self :: allocate_buffer ( num_channels , buffer_size ) ; self . host_buffer = vst :: host :: HostBuffer :: new ( num_channels , num_channels ) ; }
Prepare the handler given changed audio settings
Prepare the handler given changed audio settings
&mut self
audio_settings
&AudioProcessorSettings
&mut self
audio_settings
&AudioProcessorSettings