pub struct OverlapAddConvolver<T: Transcendental, const BUF_SIZE: usize> { /* private fields */ }Expand description
Overlap-add frequency-domain convolver.
Uses a real FFT for efficient frequency-domain multiplication. All scratch buffers are pre-allocated at construction time.
§Parameters
T— sample type (f32orf64)BUF_SIZE— processing block size in samples
Implementations§
Source§impl<T: Transcendental, const BUF_SIZE: usize> OverlapAddConvolver<T, BUF_SIZE>
impl<T: Transcendental, const BUF_SIZE: usize> OverlapAddConvolver<T, BUF_SIZE>
Sourcepub fn new(ir_len: usize) -> Self
pub fn new(ir_len: usize) -> Self
Create a new overlap-add convolver.
ir_len is the expected length of the impulse response. The FFT size
is chosen as the next power of two >= BUF_SIZE + ir_len - 1.
§Panics
Panics if the resulting FFT size is less than 4.
Auto Trait Implementations§
impl<T, const BUF_SIZE: usize> Freeze for OverlapAddConvolver<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> RefUnwindSafe for OverlapAddConvolver<T, BUF_SIZE>where
T: RefUnwindSafe,
impl<T, const BUF_SIZE: usize> Send for OverlapAddConvolver<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Sync for OverlapAddConvolver<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Unpin for OverlapAddConvolver<T, BUF_SIZE>where
T: Unpin,
impl<T, const BUF_SIZE: usize> UnsafeUnpin for OverlapAddConvolver<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> UnwindSafe for OverlapAddConvolver<T, BUF_SIZE>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more