Skip to main content

apply_window

Function apply_window 

Source
pub fn apply_window(
    samples: &mut [f32],
    window: &[f32],
) -> Result<(), AudioError>
Expand description

Multiply samples in place by window, elementwise.

The two slices must have equal length. Zero-heap: delegated to [etalon_signal::window::apply_window_in_place].

Returns AudioError::InvalidParameter if the lengths differ.