make a note for DelayBuffer::feed

This commit is contained in:
Weird Constructor 2021-06-23 05:11:39 +02:00
parent 3f8bee1301
commit bdbfd01608

View file

@ -559,6 +559,9 @@ impl DelayBuffer {
self.wr = 0; 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] #[inline]
pub fn feed(&mut self, input: f32) { pub fn feed(&mut self, input: f32) {
self.data[self.wr] = input; self.data[self.wr] = input;