pub struct SharedFeedbackWriter {
    buffer: Arc<Vec<AtomicFloat>>,
    write_ptr: usize,
    delay_sample_count: usize,
}
Expand description

This instance writes into the SharedFeedback buffer.

Even though it’s safe to have multiple writers of this will not work or produce any meaningful results. The goal is really, that one FbWr DSP node in the audio thread writes the buffer, and one (or multiple) FbRd DSP nodes read from that SharedFeedback buffer via a SharedFeedbackReader.

Fields

buffer: Arc<Vec<AtomicFloat>>write_ptr: usizedelay_sample_count: usize

Implementations

Write the next sample in to the feedback buffer.

Even though it’s safe to have multiple writers of this will not work or produce any meaningful results. The goal is really, that one FbWr DSP node on the audio thread writing the buffer per buffer iteration. And then one or more FbRd DSP node reading from that buffer.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.