pub struct Crossover<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Crossover<'a>
impl<'a> Crossover<'a>
pub fn new(dsp: &'a MiniDSP<'a>, spec: &'a Crossover) -> Self
pub async fn clear(&self, group: usize) -> Result<()>
Sourcepub async fn set_coefficients(
&self,
group: usize,
index: usize,
coefficients: &[f32],
) -> Result<()>
pub async fn set_coefficients( &self, group: usize, index: usize, coefficients: &[f32], ) -> Result<()>
Set the biquad coefficients for a given index within a group There are usually two groups (0 and 1), each grouping 4 biquads
Sourcepub async fn set_bypass(&self, group: usize, bypass: bool) -> Result<()>
pub async fn set_bypass(&self, group: usize, bypass: bool) -> Result<()>
Sets the bypass for a given crossover biquad group. There are usually two groups (0 and 1), each grouping 4 biquads
pub fn num_groups(&self) -> usize
pub fn num_filter_per_group(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for Crossover<'a>
impl<'a> !RefUnwindSafe for Crossover<'a>
impl<'a> Send for Crossover<'a>
impl<'a> Sync for Crossover<'a>
impl<'a> Unpin for Crossover<'a>
impl<'a> !UnwindSafe for Crossover<'a>
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