pub struct InputSignalModifier {
pub which: DecorrelatorId,
pub x_hist: Vec<Vec<(f32, f32)>>,
pub y_hist: Vec<Vec<(f32, f32)>>,
}Expand description
Per-channel + per-decorrelator running state for
InputSignalModifier. Carries the tail of x[ts-i-delay][sb]
(input history) and y[ts-i][sb] (output history) needed by
Pseudocode 111. Sized to the maximum delay+filterLength = 12 + 2 =
14 in the worst region; we allocate 24 per subband for slack.
Fields§
§which: DecorrelatorIdDecorrelator id (D0/D1/D2).
x_hist: Vec<Vec<(f32, f32)>>x_hist[sb][k] = previous input sample at offset k slots in
the past for QMF subband sb. Complex (re, im) pair.
y_hist: Vec<Vec<(f32, f32)>>y_hist[sb][k] = previous output sample at offset k slots in
the past.
Implementations§
Source§impl InputSignalModifier
impl InputSignalModifier
pub fn new(which: DecorrelatorId) -> Self
Trait Implementations§
Source§impl Clone for InputSignalModifier
impl Clone for InputSignalModifier
Source§fn clone(&self) -> InputSignalModifier
fn clone(&self) -> InputSignalModifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InputSignalModifier
impl RefUnwindSafe for InputSignalModifier
impl Send for InputSignalModifier
impl Sync for InputSignalModifier
impl Unpin for InputSignalModifier
impl UnsafeUnpin for InputSignalModifier
impl UnwindSafe for InputSignalModifier
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