From 376bf3fe2a85c81c5e5593132b9e1fbc5da3daee Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Thu, 14 Nov 2024 16:49:03 +0100 Subject: [PATCH] temp buffers are Box<[T]>, so: resize_temp_buffers is redundant --- src/lib.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9e9f253..051dc4a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -671,7 +671,6 @@ impl Plugin for Del2 { let mut block_start: usize = 0; let mut block_end: usize = MAX_BLOCK_SIZE.min(num_samples); - // self.resize_temp_buffers(block_end); // write the audio buffer into the delay self.write_into_delay(buffer); @@ -1044,21 +1043,6 @@ impl Plugin for Del2 { } impl Del2 { - // Either we resize in the audio thread, or in the initialization fn - // If we don't, we are slower. - fn resize_temp_buffers(&mut self, max_size: usize) { - for i in 0..NUM_TAPS { - // self.delayed_audio_l[i].resize(max_size, 0.0); - // self.delayed_audio_r[i].resize(max_size, 0.0); - } - // self.gain.resize(max_size, 0.0); - // self.dry_wet.resize(max_size, 0.0); - // self.output_gain.resize(max_size, 0.0); - // self.global_drive.resize(max_size, 0.0); - // self.delay_tap_gain.resize(max_size, 0.0); - // self.delay_tap_amp_envelope.resize(max_size, 0.0); - } - fn update_min_max_tap_samples(&mut self) { let sample_rate = self.sample_rate; self.delay_data.max_tap_samples =