From bdbfd016080af451bb18f8fd73cb3d8ada4b98a2 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Wed, 23 Jun 2021 05:11:39 +0200 Subject: [PATCH] make a note for DelayBuffer::feed --- src/dsp/helpers.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dsp/helpers.rs b/src/dsp/helpers.rs index 2d5ac15..c682f4b 100644 --- a/src/dsp/helpers.rs +++ b/src/dsp/helpers.rs @@ -559,6 +559,9 @@ impl DelayBuffer { self.wr = 0; } + /// Feed one sample into the delay line and increment the write pointer. + /// Please note: For sample accurate feedback you need to retrieve the + /// output of the delay line before feeding in a new signal. #[inline] pub fn feed(&mut self, input: f32) { self.data[self.wr] = input;