Skip to main content

apply_gain

Function apply_gain 

Source
pub fn apply_gain(
    surface: &TfSurface<'_>,
    region: &Region,
    gain: f32,
    out: &mut [f32],
) -> Result<usize, SurfaceEditError>
Expand description

Apply a gain (scalar multiplication) to a region of the surface. out must be at least frame_count * bin_count.