Skip to main content

MatrixConvolver

Struct MatrixConvolver 

Source
pub struct MatrixConvolver { /* private fields */ }

Implementations§

Source§

impl MatrixConvolver

Source

pub fn new( inputs: usize, outputs: usize, block_size: usize, routes: &[FirRoute], ) -> Result<Self, DspError>

Source

pub fn process( &mut self, inputs: &[&[f64]], outputs: &mut [&mut [f64]], ) -> Result<(), DspError>

Process exactly one block. Output channels are overwritten, including outputs with no routes. Invalid dimensions leave streaming state intact.

Source

pub fn process_buffers<I: AsRef<[f64]>, O: AsMut<[f64]>>( &mut self, inputs: &[I], outputs: &mut [O], ) -> Result<(), DspError>

Buffer-owning counterpart to Self::process, so an adapter can pass retained Vec<f64> channel buffers without allocating a view vector.

Source

pub fn reset(&mut self)

Source

pub fn block_size(&self) -> usize

Source

pub fn input_count(&self) -> usize

Source

pub fn output_count(&self) -> usize

Source

pub fn tail_samples(&self) -> usize

Samples to flush after the final input sample.

Source

pub fn transforms_per_block(&self) -> (usize, usize)

Forward and inverse transform counts, independent of the route count.

Trait Implementations§

Source§

impl Debug for MatrixConvolver

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.