crate::ix!();
#[derive(Debug,Clone)]
pub struct QuadFilterUnitState {
pub coeff: [__m128; N_COEFFMAKER_COEFFS],
pub dcoeff: [__m128; N_COEFFMAKER_COEFFS],
pub reg: [__m128; N_FILTER_REGISTERS],
pub delay_buffer: [*mut f32; 4],
pub active: [u32; 4],
pub comb_write_position: [i32; 4],
pub tables: TablesHandle,
}
impl QuadFilterUnitState {
pub fn new(
tables: &TablesHandle
) -> Self {
let z = unsafe { z128![] };
Self {
coeff: [z; N_COEFFMAKER_COEFFS],
dcoeff: [z; N_COEFFMAKER_COEFFS],
reg: [z; N_FILTER_REGISTERS],
delay_buffer: [std::ptr::null_mut(); 4],
active: [0; 4],
comb_write_position: [0; 4],
tables: tables.clone(),
}
}
}